I have a report that opens up with all records showing. I would like to add filter using a text box that would narrow the report down to just one record. I have tried this a couple of different ways but I have not been able to find one that works
VB Code:
  1. Dim report As wageChange
  2.         Try
  3.             report.DataDefinition.FormulaFields _
  4.                 ("?Employee").Text = txtNewEmpNumb.Text
  5.             report.Refresh()
  6.         Catch ex As Exception
  7.             MsgBox("There is a problem with the report" & vbNewLine & _
  8.             "Error: " & ex.Message & vbNewLine & _
  9.             "Trace: " & ex.StackTrace, MsgBoxStyle.OKOnly, "Report Error")
  10.         End Try
  11.     End Sub
The error I get is object reference is not set to the instance of an object.