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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a combo box to populate a subform

Status
Not open for further replies.

jcfraun

Technical User
Joined
Dec 13, 2008
Messages
51
Location
US
My database contains a form (Form1) with one combo box (Combo0) and a subform.

The combo box datasource is a table with two fields: Criteria, CriteriaForm.
CriteriaForm is the name of the form that I would like to have populate the subform on the form.

So, restating, when the user selects a value in the combo box, I would like for the subform to be populated by the form named in the bound column of the combo box.

How do I do this?

Thanks,
Caryn
 
I would use the after update event of the combo box to change the SourceObject of the subform control to the selected form from the combo box.

Duane
Hook'D on Access
MS Access MVP
 
Using VBA? Can you give me an example of what the code would look like?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top