PDA

Click to See Complete Forum and Search --> : Data1.Recordset.FindFirst "DueDat = search#" Whats Wrong


Aug 2nd, 1999, 04:31 AM
I am trying to search trough as database.
I want the user to input the info to search for under the DueDat column. It runs but then comes up with a error that says somthing like invalid vale in date in expression what should i do?

ScottF
Aug 2nd, 1999, 06:51 AM
Show some code that way we may be able to help

preeti
Aug 2nd, 1999, 05:40 PM
Hi,

check first that the value that you are passing is a valid date before doing your search.

You can use:

if not isdate(expression) then
msgbox "Invalid date"
else
'code for search
end if

HTH,

Preeti