Parameter Queries?

  • Thread starter Thread starter lou
  • Start date Start date
L

lou

How would I run a parameter query that prompts you to type the first
couple letters of a last name, and will allow the entire name to be
retrieved?
 
lou said:
How would I run a parameter query that prompts you to type the first
couple letters of a last name, and will allow the entire name to be
retrieved?

SELECT FieldName
FROM TableName
WHERE FieldName Like [Enter Characters] & "*"
 
How would I run a parameter query that prompts you to type the first
couple letters of a last name, and will allow the entire name to be
retrieved?

Use a criterion such as

LIKE [Enter start of last name:] & "*"

or, better, use an unbound Form frmCrit with a textbox txtSearch and

LIKE [Forms]![frmCrit]![txtSearch] & "*"

John W. Vinson[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

Back
Top