G
Guest
i am trying to enable my user to filter records when using a form called
"Screening Log (Edit Only)" by creating a combo box on the said form called
"fltCRA". the AfterUpdate event VBA code is jsut below:
Private Sub fltCRA_AfterUpdate()
If Me.fltCRA = "<All>" Then
DoCmd.ShowAllRecords
Else
DoCmd.ApplyFilter , "[CRA] = Me![fltCRA]"
End If
End Sub
the row source of the unbound combobox's is a query called lkpFormCRA and
reads:
SELECT DISTINCT [Screening Log].CRA FROM [Screening Log] UNION SELECT
"<All>" FROM [Screening Log];
in SQL.
that said, the problem is that when i use "<ALL>" , then all is well and all
the records are used, but when i use any other value in the combobox, it
issues an 'Enter Parameter Value' requesting the value of "Me!fltCAR". can
anyone see where the great bug in this is?
any help'd be really great,
-ted
"Screening Log (Edit Only)" by creating a combo box on the said form called
"fltCRA". the AfterUpdate event VBA code is jsut below:
Private Sub fltCRA_AfterUpdate()
If Me.fltCRA = "<All>" Then
DoCmd.ShowAllRecords
Else
DoCmd.ApplyFilter , "[CRA] = Me![fltCRA]"
End If
End Sub
the row source of the unbound combobox's is a query called lkpFormCRA and
reads:
SELECT DISTINCT [Screening Log].CRA FROM [Screening Log] UNION SELECT
"<All>" FROM [Screening Log];
in SQL.
that said, the problem is that when i use "<ALL>" , then all is well and all
the records are used, but when i use any other value in the combobox, it
issues an 'Enter Parameter Value' requesting the value of "Me!fltCAR". can
anyone see where the great bug in this is?
any help'd be really great,
-ted