This is my first project with access
I am working with access 2010 and I am trying to populate a subform "subfrmVisits" according to selections made in a combobox "cboSearch" on the main form "frmClientInfo"
The subform "subfrmVisits" is based on a query: SELECT Visits.Visit, Visits.Need, Visits.[New Client], Visits.[Client ID], Visits.ID
FROM Visits
WHERE (((Visits.[Client ID])=[Forms]![frmClientInfo]![cboSearch]));
In the AfterUpdate event of the "cboSearch" combo I have :
Private Sub cboSearch_Afterupdate()
Me.subfrmVisits.form.requery
End Sub
In the debug window [Forms]![frmClientInfo]![cboSearch])) returns the client ID that matches the selection in the combobox ,
but the subform is always blank.
The link master/child fields for the subform are set to Client ID.
Thank you in advance!