The subform is called Activity and I am comparing to the date/time field ActivityStartDate.
This is the code:
Expand|Select|Wrap|Line Numbers
- If Not IsNull(Me.searchFromDate) Then
- varFromDate = Format(Me.searchFromDate, "mm/dd/yyyy hh:nn:ss")
- strWhere = strWhere & "([Activity].Form![ActivityStartDate] >= " & varFromDate & ") AND "
- End If
This gives me the error:
Run-time error 3075 Syntax error (missing operator) in query expression
'([Activity].Form![ActivityStartDate] >= 02/12/2008 00:00:00)'
I've tried printing ActivityStartDate and it's exactly the same date and format.
As the operator does seem to be there I can't see why I get this error message - can anyone shed any light?
Using Access 2007 on Windows Vista.
Thanks in advance
Craig