Just need help with syntax of the Where statement:
SELECT InspectionsDI.ID, InspectionsDI.[MN12] FROM InspectionsDI WHERE (need help here);
I tested this code:
Private Sub Form_Current()
Dim var1 As String
var1 = Me.Filter
End Sub
I put a watch on var1 and it was equal to: [Area] = 'GOL4'
Some of the things I tried:
WHERE InspectionsDI.[Forms!DIForm.filter]
WHERE me.filter
WHERE InspectionsDI.me.filter
WHERE InspectionsDI. & [Forms!DIForm.filter]
WHERE "InspectionsDI." & "[Forms!DIForm.filter]"
WHERE InspectionsDI.[Forms!DIForm.filter]
WHERE me!filter
WHERE InspectionsDI!me.filter
and I tried more things but obviously cant get the syntax of the where statement correct. Any help would be appreciated, thanks.