🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

query in access

#283
From: billaras
Date: Sun, 01 Apr 2007 01:22
16 lines
1350 bytes
im trying to run the following simple query through an adoquery in
borland c++ builder 2006(the borland developer studio)

  ADOConnection1->Connected=true;
ADOQuery1->SQL->CommaText="SELECT a;b from peers where ab='a1'";
ADOQuery1->Active=true;

i get an error message saying operator missing between a and b....
if i run it through access it runs normaly.

i have connected the adoquery to an adoconnection and with odbc access 
drivers to access database


any ideas?
thks 
Technical Details
Message-ID: <460f0952@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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,564e2646d22d00f,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "billaras" <billaras1234@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: query in access
Date: Sun, 1 Apr 2007 02:22:21 +0100
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 131.227.231.111
Message-ID: <460f0952@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1175390546 131.227.231.111 (31 Mar 2007 18:22:26 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail