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

Parameter with wildcard

Status
Not open for further replies.

cathyg18

MIS
Mar 12, 2001
54
US
In Access 2003 is there a way to base a parameter selection on a partial string using wildcards? For example, I want a user to input 'CAT' and return records containing 'CAT', not just records that exactly match 'CAT'.

Thanks.

Cathy
 
In a report?

That would probably be when opening the report, say something like the following air code

[tt]DoCmd.OpenReport "TheReport", acViewPreview,,"TheField Like '*" & Me!txtTheControl.Value & "*'"[/tt]

TheField - the name of the field
txtTheControl - the name of the control holding your criterion on the form

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top