Re: SQL Access vs Excel different?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Jim in Spokane1/31/07 10:12 AM

which group do you suggest?

"Sylvain Lafontaine" wrote:

Your exemple of an Excel SQL View is using the old JOIN syntaxe (as well as
an alias for the table SYSADM.GJ). To my knowledge, both of these syntaxes
should work equally well under both Excel and Access. However, it's quite
possible that Access don't support this old syntaxe anymore; I don't know, I
didn't try it.

Finally, this newsgroup is about Access' ADP projects and SQL-Server and not
about Excel or Access' SQL query language used in MDB files; so you should
ask in a more appropriate newsgroup than this one.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"Jim in Spokane" <JiminSpokane@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:534D45BA-0B1C-4B00-A8C9-855B4518FA5E@xxxxxxxxxxxxxxxx
Anyone know why Access uses a different format than Excel for SQL?

Access SQL View:
SELECT SYSADM_GJ.ID, SYSADM_GJ_DIST.AMOUNT, SYSADM_GJ_DIST.AMOUNT_TYPE,
SYSADM_GJ_DIST.BATCH_ID, SYSADM_GJ_DIST.POSTING_DATE
FROM SYSADM_GJ INNER JOIN SYSADM_GJ_DIST ON SYSADM_GJ.ID =
SYSADM_GJ_DIST.GJ_ID;

Excel SQL View:
SELECT GJ.ID, GJ_DIST.AMOUNT, GJ_DIST.AMOUNT_TYPE, GJ_DIST.BATCH_ID,
GJ_DIST.POSTING_DATE
FROM SYSADM.GJ GJ, SYSADM.GJ_DIST GJ_DIST
WHERE GJ_DIST.CURRENCY_ID = GJ.CURRENCY_ID

Thanks!
Jim







.



Relevant Pages

  • Re: Why does Access and Excel use different SQL formats?
    ... Looks to me as though no relationships were known to Excel, ... both syntaxes should work in both products. ... Doug Steele, Microsoft Access MVP ... Access SQL View: ...
    (microsoft.public.access.modulesdaovba)
  • Re: ADP and dynamic sql
    ... INNER JOIN UnitTbl AS u ON r.UnitKey = u.UnitKey INNER JOIN ... Could you give us a exemple of the builded sql string? ... Sylvain Lafontaine, ing. ... store the value of @dynsql in a table somewhere. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: MS Access 2007 closes and errors when clicking on last record
    ... Was BigInt a feature introduced with SQL 2005, or it existed in SQL 2000? ... Sylvain Lafontaine, ing. ... Independent consultant and remote programming for Access and SQL-Server ...
    (microsoft.public.access.adp.sqlserver)
  • Re: White Paper on How MSAccess interacts with SQL Server Back End
    ... these keys to retrieve the other fields from the tables by group of 10 rows. ... or with VBA functions that Access cannot translate directly into T-SQL ... Sylvain Lafontaine, ing. ... my SQL 2000 db using ACC2003 as the front end via linked tables. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Access 2003 max rows
    ... U mean with the SQL Studio EXPRESS? ... Sylvain Lafontaine, ing. ... Independent consultant and remote programming for Access and SQL-Server ...
    (microsoft.public.access.adp.sqlserver)