how to prompt from a query?

  • Thread starter Thread starter Elsie
  • Start date Start date
E

Elsie

Hi all, I came across a select query whereby when you double-click on it, a
msgbox will prompt to enter some item code to search before it displays the
required results.

How do I go about constructing such a query?
 
It's called a parameter query. It can be done very easily by putting text
inside [ ] characters:

SELECT * FROM Tablename
WHERE Fieldname = [Enter the desired value:];
 

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