🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2715

Re: Searching Access table by Date?

#2715
From: Viatcheslav V. Vassiliev
Date: Sat, 12 Apr 2003 07:10
33 lines
1913 bytes
Select * from [TableName]
where [DateColumn] = #03/28/2003#

or Jet understands much VBScript functions

Select * from [TableName]
where [DateColumn] = DateSerial(2003, 03, 28)

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"Ivo Karindi" <solk@ieslc.com> �������/�������� � �������� ���������:
news:3e971c16$1@newsgroups.borland.com...
> Just wondering how should I go by searching an Access table by date using
> ADO?
>
> If  Field->get_Value(); returns a date like "3/28/2003", what should the
SQL
> look like to retrieve the record by that date?  Writing "select * from
Table
> where Date=3/28/2003" returns nothing since obviously the format that SQL
> sees is different.
>
> TIA,
>
> Ivo Karindi
>
>
>
Technical Details
Message-ID: <3e97bd39$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e971c16$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,f3b9f68c64c88857
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-12 00:27:33 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e971c16$1@newsgroups.borland.com>
Subject: Re: Searching Access table by Date?
Date: Sat, 12 Apr 2003 11:10:34 +0400
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.247.201.57
Message-ID: <3e97bd39$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050131769 213.247.201.57 (12 Apr 2003 00:16:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail