I have a form called frmfilterrecordset which allows a user to input criteria for three separate fields for the next form "frmsurveyviewer" to page through one by one. On the GO button for frmfilterrecordset, the vb is:
Private Sub CMDGO_Click()
DoCmd.OpenForm "frmsurveyviewer", acNormal, , acFormEdit, acWindowNormal
End Sub
and the form that is supposed to be able to page through the corresponding records and edit them if necessary has an on load event:
Private Sub Form_Load()
DoCmd.ApplyFilter "filterviewer", "[Forms]![frmfilterrecordset]![TXTDATE]=[person].[day] And [Forms]![frmfilterrecordset]![COMBOLOC]=[person].[site]"
End Sub
I keep getting a message that this is wrong, but I don't know what to try to fix it! I've tried using [Forms]![frmsurveyviewer]![site/day] instead of [person].[site] but that didn't work either.
Any suggestions?