Hey guys, I have query I'm trying to run that takes a parameter from a combo box on a form.
If this combo box has an entry selected I want the query to use that as a parameter, if it's blank I want the query to show all.
I've tried:
=Nz('[Forms].[Snapshot].[LiveInitials]','##')
but to no avail. I've also tried %% instead of # and tried without '' around the form reference. I keep getting a data mismatch error.
Live initials is a lookup of a table called StaffMember - we only have 20 staff members so the ID is never more than two digits.
Any suggestions?
If this combo box has an entry selected I want the query to use that as a parameter, if it's blank I want the query to show all.
I've tried:
=Nz('[Forms].[Snapshot].[LiveInitials]','##')
but to no avail. I've also tried %% instead of # and tried without '' around the form reference. I keep getting a data mismatch error.
Live initials is a lookup of a table called StaffMember - we only have 20 staff members so the ID is never more than two digits.
Any suggestions?