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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query by form question

Status
Not open for further replies.

bllgnn

Programmer
Jan 20, 2002
42
I've got a form with 2 combo boxes that fill 2 invisible text boxes that my query looks to for criteria. One criterion is an autonumber field. Sometimes, the user wants to select all numbers, not just one. I've tried Is Not Null, but that doesn't work. Any suggestions?
 
in the query put Like * & forms![formname]!cbo1, then you can select all
 
Hey GK22,

That works! Thanks.

Also, Hermanlasko, I tried using Null, but maybe I wasn't using it correctly. But thanks anyway.

As a newbie Access developer, I am very grateful for the help you fellow members are providing.

For instance, without the answer to my question, I had started to redesign my whole application because I thought that maybe you can't run a query from a form with more than one criterion, and allow the user to leave one of the criteria blank.

When I get better, I hope to contribute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top