open text or number criteria

ariansman

Registered User.
Local time
Today, 01:10
Joined
Apr 3, 2012
Messages
157
I'm using a control on a form as a parameter for my query. I've defined the criteria in the query as
[Forms]![myform]![myControl]
How do I set this up so that the query returns all records which have a part of the myControl that is typed in [myForm]![myControl]? does this work for both number and text?

Thank you
 
I'm using a control on a form as a parameter for my query. I've defined the criteria in the query as
[Forms]![myform]![myControl]
How do I set this up so that the query returns all records which have a part of the myControl that is typed in [myForm]![myControl]? does this work for both number and text?

Thank you

Like "*" & [Forms]![myForm]![myControl] & "*"
 
What is the data type of the column you have the criteria on?
 
tnx a lot :), it worked
in one column it is number, in the other column it is text. do they make
 

Users who are viewing this thread

Back
Top Bottom