Needing Help with Forms and Queries.

ChrisBush

New Member
Joined
Jan 31, 2013
Messages
4
I have not used access much in the past and I have just been given a task to provide a solution to a problem. The problem is that a University has a lot of members of staff in one department. Each one of those members of staff teach quite a few Modules (Subjects) and each Module is taught by a few members of staff. So far I have three tables in my access database. I have a Staff table, with the fields as Staff ID, Staff Name, Email Address, Phone Number, Room Number. I also have a Module table. The fields in this table are Module ID, Module Name, Description, Skills Taught, Module Code(The official University Code). I also found out that I needed a third table to link these two tables together so I named this StaffModule. Inside this StaffModule table I have the StaffModule ID, the Staff ID (which is linked to the Staff table) and I also have a Module ID (Which is linked to the Module table). All of my tables now have been filled with the correct information and data and now all I need to do is the search/filter part using a Form. I have a form with Three Labels. These three labels are "Module Name:", "Staff Name:" and "Keyword:". Each of these labels have a text field next to them. What query would I need to solve this problem:

"The university would like an access form to be able to filter through the database and produce the data based on a keyword search. So for instance, if the university types in the name of a member of staff then all of the information related to them will be shown as well as the modules they teach. Another example would be if a module name is searched, then all of the information for that module would be shown as well as the names and information of the staff members that teach it."

Please remember I have not used access much before :)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Here is a tutorial on search forms. Build your query then build the search form. You will need to join your tables on common IDs and bring in the fields that you want in the queries. Depending on your needs you may need more than one query.

Macromedia Flash (SWF) Movie Created by Camtasia Studio 2


Thanks for your help. My problem is that the query in that video only shows information from one table. I'd like the information that is shown to be from two tables. So say I type in a Module Name into the text field and click the "Run Query" button, how do show I the members of Staff that teach that Module if they are in a separate table?

At the moment I can get all of the information from that module to show up but not the names of the members of staff that teach it.

I have linked the two tables using a third joining table as mentioned in the original post. I just don't know what to do now.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top