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

Dynmaic Query

Status
Not open for further replies.

zambrtp

Programmer
Jan 17, 2003
42
US
I am trying to create a dynamic Query....
I create a query with this criteria [Forms]![Formname]![txtboxname] OR LIKE [Forms]![Formname]![txtboxname]iS NULL, I set the parameters to match the query.
BUT it wont work correctly....
A command button to calls the form with the txtboxes then the a cmd button calls the query...then when I try to view the SQL it says its to large
HELP NEED urgently

 
MGM:

Does that allow Nulls...I want to be able to have the user Just enter 2 out of ten and have the query work? and if they dont select anything everything should come back...

thanks for the help
Tereza
 
Set enabled to no on your text box and use a check box to enable them. If the text box is not enabled then all records will return. Use a msgbox to warn user if the check box is yes and the text box is null.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top