Article View: borland.public.cppbuilder.database.ado
Article #3783Re: SQL Query On an Access Database ?
From: Vassiliev V.V.
Date: Fri, 21 Jun 2002 09:17
Date: Fri, 21 Jun 2002 09:17
32 lines
1852 bytes
1852 bytes
Try this: SELECT * FROM EventList WHERE EventTime = #11/10/2000 7:35:15#; This means 10 November. Regards, Vassiliev V.V. http://www.oledbdirect.com "Peter Moscatt" <pgmoscatt@optushome.com.au> �������/�������� � �������� ���������: news:3d12ab37$1_1@dnews... > > I am trying to use the following code in an sql query to bring data into a MS Access database. Using C++ Builder 6. > > QueryStr = "SELECT * FROM EventList WHERE EventTime = 11/10/2000 7:35:15 AM"; > > When I make this actice, I get the following error message: > 'Parameter object is improperly defined. Inconsistant or incomplete information was provided' > > When I use the query without the time, all is well but as soon as I put the time in, it fails. > The Access field type is Date/Time. > > Regards > Pete >
Technical Details
Message-ID:
<3d134281_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d12ab37$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,689888911672d1a5 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-21 08:15:54 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d12ab37$1_1@dnews> Subject: Re: SQL Query On an Access Database ? Date: Fri, 21 Jun 2002 13:17:27 +0400 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.130.195 Message-ID: <3d134281_1@dnews> X-Trace: dnews 1024672385 62.118.130.195 (21 Jun 2002 08:13:05 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews