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!

Less than criteria

Status
Not open for further replies.

jamespeters01

IS-IT--Management
Apr 3, 2001
75
GB
I would like to run a criteria in my query that works sort of like the one below, but I would like to bring up all the records less than the number of units I type into the query rather than every record which contains the typed figure.

Like "*" & [number of units ??] & "*"


Any help would be appreciated.


Thanks
 
< [number of units ??]

Remember, the LIKE operator is best suited for text fields. It would make no sense to apply this to a numeric field, unless it was postcode or phone number or something like that.
 
Thank you Dodgey,

I realise, that when I press return it thinks I have entered a zero and no records are brought up. Is there a way round this, so that when I just press return it returns all records ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top