Hi,
I have created a filter for my database. I have a combo box for the user to select what they want to filter the database by. Every option works except when the user wants to see the records with blanks in a certain field. Using debug.print, this is what the code looks like, do you see anything wrong? It doesn't return any results.
SELECT * FROM myTable WHERE ( [Field1l] = "" ) AND ( [Field2] = "L" ) AND ( [Field3] = "L" )
So the Field1 = "" is what's giving me problems. Searching for "L" in Field2 and "L" in Field3 alone is fine.
I have created a filter for my database. I have a combo box for the user to select what they want to filter the database by. Every option works except when the user wants to see the records with blanks in a certain field. Using debug.print, this is what the code looks like, do you see anything wrong? It doesn't return any results.
SELECT * FROM myTable WHERE ( [Field1l] = "" ) AND ( [Field2] = "L" ) AND ( [Field3] = "L" )
So the Field1 = "" is what's giving me problems. Searching for "L" in Field2 and "L" in Field3 alone is fine.