Select Criterion - wildcard

G

Guest

Have a query with addresses - need the user ot be able to enter just the
street numbers and see all addresses with said numbers. Such as:"836" gives
them 836, 8365, 836009 from the table. Not sure how to use a wildcard with a
select criterion. Simple have [Address Number?] right now - it only pulls
exact matches. Have to do this in design view - dont know vba.

--
Regards,

Bryan Brassell
Padgett Business Services
281-897-9141
 
M

Michel Walsh

FieldName LIKE Forms!formName!controlName & "*"

or

FieldName LIKE Forms!formName!controlName & "%"


are the possible criteria (* by default, with Jet ). In the query designer,
bring the field name in the grid, and, there, under it, at the criteria
line, type

LIKE Forms!formName!controlName & "*"


Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

excluding records 2
First 200 Query 6
Query maximum values 2
count rows with data 4
CurDir 5
Form/SubForm 2
counts rows in data 7
Find last used column 8

Top