Hi,
can anyone tell me what is wrong with this function ? It keeps coming back as no data, even though there is a date set in the table.
Public Function ifdateexists()
If IsNull(DLookup("[TT.date]", "qry_TT", "[TT.date] =" & Forms!TT!frm_date![txt_searchdate])) Then
MsgBox "no data"
Exit Function
Else
MsgBox "Data"
End If
End Function
can anyone tell me what is wrong with this function ? It keeps coming back as no data, even though there is a date set in the table.
Public Function ifdateexists()
If IsNull(DLookup("[TT.date]", "qry_TT", "[TT.date] =" & Forms!TT!frm_date![txt_searchdate])) Then
MsgBox "no data"
Exit Function
Else
MsgBox "Data"
End If
End Function