I've got a continuous form based on a query.
Each of the fields have a search box below it (in the footer) which should ideally filter the query.
I'm starting with the FirstName field.
In the form's query, I've set the criteria to the following for the FirstName field:
frmStudentDetails is the form name.
txtSearchFirstName is the search box's name (in the footer).
The AfterUpdate event for txtSearchFirstName is:
But, it doesn't work; when I switch to form view, it displays an error:
What am I doing wrong here? Any guidance?
Thanks!
Each of the fields have a search box below it (in the footer) which should ideally filter the query.
I'm starting with the FirstName field.
In the form's query, I've set the criteria to the following for the FirstName field:
Code:
Like "*" & [Forms]![frmStudentDetails]![txtSearchFirstName] & "*"
frmStudentDetails is the form name.
txtSearchFirstName is the search box's name (in the footer).
The AfterUpdate event for txtSearchFirstName is:
Code:
Me.Requery
But, it doesn't work; when I switch to form view, it displays an error:
The Microsoft Access database engine does not recognize '[Forms]![frmStudentDetails]![txtSearchFirstName]' as a valid field name or expression.
What am I doing wrong here? Any guidance?
Thanks!
Last edited: