Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter query ignores blank records 1

Status
Not open for further replies.

mdlaugh1

Technical User
Jan 17, 2006
76
US
I have the following prompt in a criteria field:

Like [Enter the TYPE OF WORK or * for all] & "*"

As long as a record has a value in "type_of_work" the record is selected. but it ignores rows with blank (null?) in that field.

I have created a new field called TYPE_WORK with the following calc: TYPE_WORK: IIf(IsNull([TYPE_OF_WORK]),'NOT ENTERED',[TYPE_OF_WORK])

which forces the value "Not Entered" into the empty fields, and then query pulls all records, but this is a long way around....

Is there a way to simply select the record showing the field to be blank, without forcing the 2nd calculated field? thanks!
 
Like [Enter the TYPE OF WORK or * for all] & '*' OR [Enter the TYPE OF WORK or * for all] = '*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hey PHV,
thanks!! Works like a charm! I'm being a little dense.. can you explain why it's working.. what is the OR param doing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top