M
Mary Bowman via AccessMonster.com
I have the following code to send records based on the case to the form
that I have created. I keep getting the error "variable not found"
highlighting "RcdFilter"
Any suggestions???
Private Sub ADP_Click()
Dim sFilter As String
Select Case RcdFilter
Case 0
Case 1 sFilter = "[Companyid] = '2"
End Select
Me.Filter = sFilter
Me.FilterOn = Len(sFilter) > 0
DoCmd.OpenForm "frmPreview"
End Sub
that I have created. I keep getting the error "variable not found"
highlighting "RcdFilter"
Any suggestions???
Private Sub ADP_Click()
Dim sFilter As String
Select Case RcdFilter
Case 0
Case 1 sFilter = "[Companyid] = '2"
End Select
Me.Filter = sFilter
Me.FilterOn = Len(sFilter) > 0
DoCmd.OpenForm "frmPreview"
End Sub