G
Guest
Hello.. I need my generic report to be based on certain selections made from
various combo boxes on my form. This is sample of the code for one of the
form's combo boxes:
Private Sub cbomsup1_Click(Cancel As Integer)
globalCriteria = "WHERE ([Cust]![CusID] = """ & Me.CusID & """ )"
globalCloseFilt = True
DoCmd.OpenReport "CustSurvey", acViewPreview
End Sub
Can someone help me with the report's "On Open" event code, so that the
report is based on the combo selection? I do not wish to use a macro.
various combo boxes on my form. This is sample of the code for one of the
form's combo boxes:
Private Sub cbomsup1_Click(Cancel As Integer)
globalCriteria = "WHERE ([Cust]![CusID] = """ & Me.CusID & """ )"
globalCloseFilt = True
DoCmd.OpenReport "CustSurvey", acViewPreview
End Sub
Can someone help me with the report's "On Open" event code, so that the
report is based on the combo selection? I do not wish to use a macro.