How to Create an Access Query to Prompt User to Input

Save

Access queries pull information from the database table based on set criteria. One option for the criteria includes the ability to create user prompts. When the query is run, a box pops up giving you directions. These prompts include matching single field values such as a name or a range of fields such as dates. You enter a value into the box and the query pulls all the applicable information.

  • Open your Microsoft Access database.

  • Select the "Create" tab on the top menu bar. Click the "Query Wizard" button. Select "Simple Query Wizard." Click "OK."

  • Click the down arrow and choose a table or query to base your new query on.

  • Choose the fields you want to add to your query. Click the ">" button to add the fields. Click "Next."

  • Name your query. Click the radio button next to "Modify the query design." Click "Finish."

  • Place your cursor in the "Criteria" box of the field you are searching. Type the words you want to appear on the prompt. Make sure to enclose the phrase in square brackets. For example:

    [What name are you searching for?]

  • Click the "Run" button on the top ribbon. A box should appear that shows the phrase you typed. Enter a response. The query pulls all records that contain that word or number.

Tips & Warnings

  • To do a range of dates use:
  • Between [The start date:] And [The end date:]

References

Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!