I have a "Cross-Reference Search Form" which has several combo boxes to choose from. I finally got this thing to work but there is one minor problem that is a major annoyance. I based a form on a query, and put in SQL criteria for the query which pretty much said
ie.
....WHERE ((field name)=[forms]![frmName]![Control] OR IsNull...) AND ...
Anyway, the SQL wasn't the problem, but it kinda is. You see, because I have allowed certain combo's to be null, when I open the form, it assumes that everything is Null, thereby displaying EVERY SINGLE match, AKA everything. This is nothing more than an aesthetic problem, but aesthetics are very important where I work so this will not suffice. As you can imagine, I have a "search" button that is essentially requering the forms underlying values based on the combo boxes being selected, so this problem 'disappears' after one search. Has anyone ever ran into this before? I just want it to be cleared when I open up the query...Thanks Dan Eaton
deaton@caemachinery.com
ie.
....WHERE ((field name)=[forms]![frmName]![Control] OR IsNull...) AND ...
Anyway, the SQL wasn't the problem, but it kinda is. You see, because I have allowed certain combo's to be null, when I open the form, it assumes that everything is Null, thereby displaying EVERY SINGLE match, AKA everything. This is nothing more than an aesthetic problem, but aesthetics are very important where I work so this will not suffice. As you can imagine, I have a "search" button that is essentially requering the forms underlying values based on the combo boxes being selected, so this problem 'disappears' after one search. Has anyone ever ran into this before? I just want it to be cleared when I open up the query...Thanks Dan Eaton
deaton@caemachinery.com