Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch in Expression (in Date Field)

Status
Not open for further replies.

ameen

Programmer
Jun 24, 2001
32
IN
I have a table in Paradox. One of the field has a Date data type. In my application, I supposed to receive the value for this date as a string from a Server in dd/mm/yy format. Before I store the data into my database, I have to check my system date format (whether it is in British format or US Format). After checking, I stored the data. But when I want to filter the record based on the selected date, I am getting an Error with message 'Type Mismatch in expression'. How to avoid this error?.

I would appreciate for any assistance.

Ameen
 
Have you tried converting the dates to string with:

DateToStr();

Now you can basically just a sort of functionality
like the TFindDialog has. Converting both dates to
string of course. You can basically just bookmark the
matches and filter those out with a query.

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top