I am currently filtering my form with the following two lines of code:
Me.Filter = "
![field] = '" & [tempVariable] & "'"
Me.FilterOn = True
It is working well, except when the tempVariable is not equal to the field in the table then the form comes up blank and the user cannot go backwards. Is there a way to see how many records will be returned by the filter? If it returns no records or if there are no records in the table equal to the temp form, then I will not apply the filter and give the user some sort of message box.
Thanks
Me.Filter = "
Me.FilterOn = True
It is working well, except when the tempVariable is not equal to the field in the table then the form comes up blank and the user cannot go backwards. Is there a way to see how many records will be returned by the filter? If it returns no records or if there are no records in the table equal to the temp form, then I will not apply the filter and give the user some sort of message box.
Thanks