Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a form popoulate based on a selection of a combo box?

Status
Not open for further replies.

Kurtosdf

Programmer
Jan 17, 2001
32
US
I have a student form that I would like populated when I select a student from a combo box (i.e. address, etc).

Any help is appreciated!

Kurto
 
Create an unbound combobox. Name it comboselect
Set its source to the field that holds the students IDs.
In the combo boxes after update event place code like this

dim filttxt as string
filttxt = "Studentid = " & me.comboselect
docmd.applyfilter ,txtselect

If your studentid field is not a number you may have to use
filttxt = "Studentid = '" & me.comboselect & "'"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top