🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Data Type Mismatch in Criteria Expression

#1357
From: Kim Utley
Date: Mon, 26 Jul 2004 16:07
21 lines
1470 bytes
Hi All,

Am working on BCB 6 with TADO... objects, specifically TADOConnection and
TADOQuery in my example problem. I am attempting to delete all rows in a
table that have a date/time stamp older than 'x' amount of days.

I am issuing the following SQL statement be am getting "Data type mismatch
in criteria express' exception:

DELETE FROM EventHistoryTbl WHERE DateTimeStamp < '06/26/04 10:17:30'

I've also tried:

DELETE FROM EventHistoryTbl WHERE DateTimeStamp < #06/26/04 10:17:30#

Does anyone know why I'm getting this error?

Kindest Regards,


Kim L. Utley
Technical Details
Message-ID: <41052c3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,8373fe4b7c83316d,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kim Utley" <kim@simsware.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Data Type Mismatch in Criteria Expression
Date: Mon, 26 Jul 2004 11:07:33 -0500
Lines: 23
Organization: SIMS, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 65.205.74.2
Message-ID: <41052c3f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090858047 65.205.74.2 (26 Jul 2004 09:07:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail