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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date HELP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I'm using Delphi5 and I have a SQL query retreiving appointments where the date is greater than Today. The funcion Date in delphi returns the current date(if I'm not wrong). I tried everything but I keep getting type mismatch error or invalid use of keyword Date...

'select * from traitements where Datefield > DateToStr
(Date) order by datefield'
or
maintenant := DateToStr(Date);
'select * from traitements where Datefield > '+maintenant+' order by Datefield'
It never works
Please help
Thanks [sig][/sig]
 
I am not a delphi5 expert but it looks to me like you are comparing a char string with a date and they may be uncompatible. [sig]<p>Ged Jones<br><a href=mailto:gedejones@hotmail.com>gedejones@hotmail.com</a><br><a href= > </a><br>Top man[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top