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

Query filter criteria

Status
Not open for further replies.

DKH

Technical User
Jul 16, 2001
7
0
0
GB
I have a combo box that obtains its record set via SQL which has a criteria applied to allow filtering of records to take place.

The criteria is obtained from a form object and VBA assigns a value to the form object accordingly.

The criteria can range from a value of between 1 and 7, but it is also possible that a full set of data may be required, in which case no filtering is needed.

What would be the value that I need to assign to the form object that allows the query to return the full record set. I have tried "Like '*'", but this didn't work.

Many thanks for your help!!
 
Have you tried using an IIF statement?
IIF (Some condition true, true recordset, false recordset)
I have never tried this myself, but it's worht a shot!

HTH
Binky ::)
><>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top