🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with Access Databases

#3365
From: Vassiliev V.V.
Date: Thu, 10 Oct 2002 07:12
36 lines
2517 bytes
Try set ParamCheck in TADODataset (TADOQuery, TADOTable etc.) to false. You
should also use brackets ([abc:def...]).

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


"Lee Gan" <leegan@hotmail.com> �������/�������� � �������� ���������:
news:3da4aa48$1@newsgroups.borland.com...
> I posted this message sometime ago on this forum and did not get a
workable
> answer. Now I am trying again.
>
> I have an Access 97 database which has a table named something like
> abc:def:gh. Then I try to query against the table using a TADOQuery. The
SQL
> statement looks like
>
> SELECT * FROM abc:def:gh WHERE conditions
>
> No problem with compilation and linking. However, whenever this SQL is
> executed, an error message pops up asking me to specify parameters abc,
def
> and gh. This is simply because the compiler treats the table name as three
> parameters. I have tried to put "abc:def:gh", 'abc:def:gh', [abc:def:gh],
> {abc:def:gh} and many other things for the table name, no success. This
> problem goes away when I manually change the table name to abcdefgh.
>
> Can anybody help me? Many thanks in advance. BTW, I use BCB 6 Pro.
>
> Lee Gan
>
>
Technical Details
Message-ID: <3da53264@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3da4aa48$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,ccea621b0887f8c
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-10 01:18:05 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3da4aa48$1@newsgroups.borland.com>
Subject: Re: Problem with Access Databases
Date: Thu, 10 Oct 2002 11:12:23 +0400
Lines: 38
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: 212.188.100.101
Message-ID: <3da53264@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1034236516 212.188.100.101 (10 Oct 2002 00:55:16 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail