Create a filter to display only those records that have the criteria required?
I'm using this code:
DoCmd.OpenForm "Formname"
Forms!Formname.Form.Filter = "Data = " & Me.Datacriteria
Forms!Formname.Form.FilterOn = True
When I run the program the following error appears:
Run-Time error '2448'
You can't assign value to this object.
Help please!!!
I'm using this code:
DoCmd.OpenForm "Formname"
Forms!Formname.Form.Filter = "Data = " & Me.Datacriteria
Forms!Formname.Form.FilterOn = True
When I run the program the following error appears:
Run-Time error '2448'
You can't assign value to this object.
Help please!!!