Re: ANSI 97 SQL (MS ACCESS)
- From: "David J Mark" <nntp45534-22@xxxxxxxxxxxx>
- Date: Thu, 26 Jan 2006 17:13:47 GMT
"Rick" <Rick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1711CCDA-8562-4E2E-A5C0-B6CBEA86A676@xxxxxxxxxxxxxxxx
> I'm working on a VB 6.0 application that uses DAO 3.51 to connect to an MS
> Access 97 database (I know it's quite old, please save your comments)
>
> My problem is in Access's SQL syntax. The program is suppossed to
> automatically bluid the queries (they are all SELECT statements). I find
> that
> the INNER JOIN statements are quite different from SQL2000.
SQL joins are SQL joins. There are minor variations in syntax from one
platform to another. Here's the thing: you shouldn't be passing SQL from
your VB app anyway. Imagine a future developer trying to migrate your code
to SQL Server. They would have to track down a bunch of string constants in
your VB code before they can even think about the task at hand. Once you
figure out your JOIN's, put them in queries. Then switch to ADO. You can
use the same syntax to call queries in Access or SP's in SQL Server (and you
won't have to worry about DAO's object layer messing with your SQL syntax.)
>
> Is there any information on Internet that teaches me how to build queries
> from access97? The problem is with the INNER JOINs, since I have to relate
> several tables at once.
Okay, so what problem are you having with INNER JOIN's? How about posting
the query and/or code?
>
>
> --
> Rick
.
- Prev by Date: Re: Advice
- Next by Date: Re: Saving to excel from ole control in vb.6
- Previous by thread: Re: Advice
- Next by thread: Re: ANSI 97 SQL (MS ACCESS)
- Index(es):
Relevant Pages
|