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

Ms access - populating a subform according to selection in main form combobox

Status
Not open for further replies.

kiri19

Programmer
Aug 28, 2012
6
CA
I am new to ms access, i need some help populating a subform (visitForm) according to a selection in a combobox(searchCombo) on the mainform(clientInfoForm)
so far it pulls up the info but opens up a new datasheet instead of populating the subform.
In the searchCombo box on change event i have :

Private Sub searchcombo_Change()
DoCmd.OpenQuery "visitResultsQuery"
Me.visitForm.Form.RecordSource = "visitResultsQuery"
Me.visitForm.requery
End Sub

The visitForm subform is based on the visitResultsQuery query.

Thanks in advance for your help!
 
hi,

You would be better served posting MS Access questions in MS Access forums, like forum702, for instance.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top