Allow Null Value in Query??

KristenD

Registered User.
Local time
Today, 16:41
Joined
Apr 2, 2012
Messages
394
I have a form that is based off a query with combo boxes in order to choose what data is pulled.

I would like one of the combo boxes (for superintendents) to not have to have information in it so it will pull everything all the info OR be able to choose a specific superintendent.

I looked on the property sheet to see if I could choose null value allowed but I didn't see anything there under the Data tab. Is this possible or should I be looking at another tab for this info?

Thank you in advance!
 
Not sure how you want it to work, but I am guessing you have a ComboBox whihc has names of Superintendents either after selecting a name or clicking a button you want it to runa Query is this correct??
 
Yes, I have 7 unbound combo boxes that tie back to the query in order to run the report. So 6 out of the 7 combo boxes (Emp Status, craft codes, skills and ratings) need to be filled out.
 
So in the Query where you take the value for the Last combo box check if it is zero length, if so include all; else only the ones that is selected.. Something like..
Code:
Like IIf(Len([Forms]![Your_form_Name]![Combo_Box_name] & "")<>0,[Forms]![Your_form_Name]![Combo_Box_name],"*")
The bit of code goes in the criteria..
 

Users who are viewing this thread

Back
Top Bottom