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!

Using Like for Strings what is used for

Status
Not open for further replies.

Margah

Programmer
Mar 21, 2004
15
US
I am using the Like expression for strings what would i use for Numbers.
 
Between? Maybe. If you want to do fuzzy matching, you can't AFAIK.

[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]
 
You certainly can use LIKE for numbers with a bit of thought.....

SELECT
WhatEver
FROM
WhereEver
WHERE
CStr(YourNumberField) LIKE "*" & YourCriteria & "*"

All you do is cast your number field to a string using CStr.

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top