Article View: borland.public.vdbase.data.sql
Article #586Re: Any ideas how to make this work?
From: mike
Date: Tue, 20 Oct 1998 00:00
Date: Tue, 20 Oct 1998 00:00
27 lines
1492 bytes
1492 bytes
Steve Koterski wrote: > > What does "does NOT work" mean, exactly? You're getting an error message? > No error, but no or incorrect results? Sorry about that! It was giving me an error "data type mismatch" I knew it could be done but not the syntax. > > One potential problem I see is that the date literal (represented by your > sdate variable) winds up with no delimiting quotation marks. Local SQL > requires that date literals in SQL statements be surrounded by quotation > marks. I would suggest a change something like: > > results.query1.sql = 'SELECT * FROM dbmaint.dbf WHERE (unit_num = ' + > unit + ') AND (entrydate >= "' + sdate + '")' This was exactly what i was looking for!!! it works great and I learned something. Now all I have to do is learn about a million other thing and I'll be able to convert my programs to vdb7. I thank you a lot for your help.. Mike Kikrland
Technical Details
Message-ID:
<362CE18D.C2334D6A@notgiven.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<362CB185.25FCA8EF@notgiven.com> <3630d1d7.9783294@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,a104ec5b907376c2 X-Google-Attributes: gidff5a1,public From: mike <none@notgiven.com> Subject: Re: Any ideas how to make this work? Date: 1998/10/20 Message-ID: <362CE18D.C2334D6A@notgiven.com> X-Deja-AN: 403279064 Content-Transfer-Encoding: 7bit References: <362CB185.25FCA8EF@notgiven.com> <3630d1d7.9783294@forums.inprise.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql