Solved

How do I create a combobox to filter records in a Access 2007 form - returning mutliple records for one distinct number?

Posted on 2008-10-29
2
197 Views
Last Modified: 2013-11-28
I have created this database to record session notes for students. Each student has a student number and a note for each session. I have a session documentation form. I want to filter the form for a specific student and only recall those records for a particular student, sorted by date. Then I want to add a new record. I'm sure that this is simple but I am struggling. I can do this with the filter function but now my colleagues want to use the database and it would be much easier for them to have a find student button - thanks so much -
0
Comment
Question by:EzlyAmuzed
2 Comments
 
LVL 42

Accepted Solution

by:
dqmq earned 50 total points
ID: 22836911
I suggest the recordsource of your mainform is based on the StudentTable.  On that form you can use the built in navigation controls, combo boxes, or any number of other means to make a given student current.

Add a subform control and base the subform on StudentSession. This would be your session documentation form.  In the subform control properties you can link the studentsession form to the student form.  
0
 
LVL 4

Expert Comment

by:OdeMonkey
ID: 22965962
Populate a combo box, cbxSelectStudent, (at the top of your form) with the alpha list of students.  Set up the AfterUpdate event to set the recordsource for the form to something akin to "SELECT * FROM tblStudentNotes WHERE StudentID=me.cbxSelectStudent.Value.  Then requery the form.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question