TADOQuery and Date fields problem
- From: "Shannon" <swalker0529@xxxxxxxxxx>
- Date: Wed, 15 Jun 2005 10:56:56 -0400
Hi All,
I am using a TADOQuery in order to search through a table of records for a
date value. I can't seem to get the syntax right when specifying the SQL
statement though. I have the following:
qryLookUp.SQL.Add('SELECT * FROM table1 WHERE ((DevID = '+
IntToStr(intDevID) + ') and (ServiceDateTime = #' + serviceDate + '#'
+'))');
serviceDate above is a string containing the date and time I am looking for.
ServiceDateTime DateTime field in MS Access.
I get an error that says 'Parameter object is improperly defined'. Does
anyone know the syntax for doing a search for a date value?
Any help would be appreciated.
Thanks.
Shannon
.
- Follow-Ups:
- Re: TADOQuery and Date fields problem
- From: Brian Bushay TeamB
- Re: TADOQuery and Date fields problem
- Prev by Date: Getting Started
- Next by Date: refrash grid after chnges
- Previous by thread: Getting Started
- Next by thread: Re: TADOQuery and Date fields problem
- Index(es):
Relevant Pages
|