So I have the following search code:
Code:
' If App To
If IsDate(Me.TermTo) Then
' Add it to the predicate - exact
strWhere = strWhere & " AND " & "MainDB.[Case Terminated Date] <= " & GetDateFilter(Me.TermTo)
ElseIf Nz(Me.TermTo) <> "" Then
strError = cInvalidDateError
End If
If strError <> "" Then
MsgBox strError
Else
'DoCmd.OpenForm "Browse Issues", acFormDS, , strWhere, acFormEdit, acWindowNormal
If Not Me.FormFooter.Visible Then
Me.FormFooter.Visible = True
DoCmd.MoveSize Height:=Me.WindowHeight + Me.FormFooter.Height
End If
Me.Browse.Form.Filter = strWhere
Me.Browse.Form.FilterOn = True
End If
End Sub
In 2010 Access the search works fine! In Access 2007 I get an error at the Line Me.Browse.Form.Filter=Strwhere
and mouseover reveals: The expression you entered refers to an object that is not...
Any Ideas?