Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Microsoft: Access Forms FAQ

User Interface Techniques

How to run queries through forms? by Kckronic21
Posted: 7 Nov 01

What you want to do is to create a form that list all of the positions in a combobox and run a query from the selection of that combobox.

1) Create a table called ôPositionö with ôPositionö as a field name
The data in your table such look like this:


2) Create a table called ôEmployeesö with ôNameö, ôPositionö, and ôShiftö as field names.  The data in your table such look like this:

Name     Position      Shift
Kim     Supervisor    3rd
Mike     Manager    2nd
Chris     Associate    2nd

3) Save the table and create a query called ôEmployee_Queryö with the following fields:

Name     Position         Shift
4) Place the following criteria under the ôPositionö field:

5) Save the query and create a form called ôEmployee_Formö with the control source of that form being ôEmployee_Queryö.  

6) Create a combobox using the wizard that will lookup the values in the ôPositionö table.

7) Name this combobox ôPosition_comboboxö.

8) Create a button using the wizard that will run the ôEmployee_Queryö

9) Save the Form

10) Go to design view, choose a position, and press the button.

Back to Microsoft: Access Forms FAQ Index
Back to Microsoft: Access Forms Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close