Article View: borland.public.cppbuilder.database.ado
Article #2375Re: Attempting to add two values
From: Lee
Date: Sat, 06 Sep 2003 07:35
Date: Sat, 06 Sep 2003 07:35
69 lines
3301 bytes
3301 bytes
OK, it all works. I am a dope, and was typing test1 and test2, when teh fields were named tests1 and tests2. I guess they were right when they said attention to details are important. Thanks for your help... Lee "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message news:3f58b59b@newsgroups.borland.com... > Oops, you are absolutely right. > > ---------------------------------------------------------------- > 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. > > "Arnie Mauer" <arnie@earthlink.net> �������/�������� � �������� ���������: > news:3f58a732$1@newsgroups.borland.com... > > Actually, > > SELECT Test1+Test2 AS Total FROM Tests WHERE ID='1' > > > > - Arnie > > > > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message > > news:3f587dfb@newsgroups.borland.com... > > > SELECT Test1+Test2 AS Total FROM Tests AS Total WHERE ID='1' > > > > > > ---------------------------------------------------------------- > > > 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. > > > > > > "Lee" <gobroski@elltel.net> �������/�������� � �������� ���������: > > > news:3f58439e$1@newsgroups.borland.com... > > > > I have a table called Tests, I am trying to add Column 2 with Column 3 > > > > Titled Test1 and Test2. They both have Values of 100 on them. This > is > > > the > > > > code I am attempting to use: > > > > Data->TestQuery->SQL->Text = "SELECT Test1+Test2 FROM Tests AS Total > > WHERE > > > > ID='1'"; > > > > Data->TestQuery->ExecSQL(); > > > > > > > > The table has 4 columns, ID (int) Test1(Int) Test2(Int) Totals(Int) > > > > > > > > I need getting Syntax Error (Missing Operator) > > > > > > > > What am I doing wrong.... > > > > > > > > Thanks > > > > Lee > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Technical Details
Message-ID:
<3f598e3f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f58439e$1@newsgroups.borland.com> <3f587dfb@newsgroups.borland.com> <3f58a732$1@newsgroups.borland.com> <3f58b59b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,936104488da64418 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-09-06 00:38:52 PST From: "Lee" <gobroski@elltel.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3f58439e$1@newsgroups.borland.com> <3f587dfb@newsgroups.borland.com> <3f58a732$1@newsgroups.borland.com> <3f58b59b@newsgroups.borland.com> Subject: Re: Attempting to add two values Date: Sat, 6 Sep 2003 00:35:32 -0700 Lines: 71 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 12.18.162.101 Message-ID: <3f598e3f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062833727 12.18.162.101 (6 Sep 2003 00:35:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail