Hello,
I was compiling my VBA code before creating an ACCDE when I got the compile error "Invalid use of Me keyword". The code is in a class module and it runs perfectly when I initiate it from the form. The section of code is below. Any ideas?
Private Sub cmdFilter_Click()
'Purpose: Build up the criteria string from the non-blank search boxes, and apply to the form's Filter.
Dim strWhere As String 'The criteria string
Dim lngLen As Long
If Me.filterRefuel = 1 Then
strWhere = strWhere & "([AerialRefuelCapable]=""Yes"") AND "
ElseIf Me.filterRefuel = 0 Then
strWhere = strWhere & "([AerialRefuelCapable]=""No"") AND "
End If
....
...
End Sub