John Nurick wrote ...
Few people have your grasp of the Jet SQL syntax
I respond well to flattery <g>. Using SQL directly means greater
control so it's worth getting to know. Often, features such as
TransferSpreadsheet are implicitly executing SQL on your behalf and as
a developer I want to be in on the secret. For example,
TransferSpreadsheet where the target is a defined Name ('named range')
in some circumstances issues a DROP TABLE before issuing a
SELECT..INTO query. Maybe it's just me but if a DROP TABLE is
happening, I want to be in charge!
can you point to a good source of examples?
Articles on MSDN. Admittedly, they are not easy to find because they
have misleading titles e.g. this one's good for 'Excel' SQL...
Microsoft Knowledge Base Article - 257819
How To Use ADO with Excel Data from Visual Basic or VBA
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q257819#RetrieveExcel
....but would be better titled, 'How To Use Excel Data with the Jet
Provider'.
For general Jet SQL (version Jet 4.0), you can't get better than this
article...
Intermediate Microsoft Jet SQL for Access 2000
http://msdn.microsoft.com/library/en-us/dnacc2k/html/acintsql.asp
....but why oh why is 'Access 2000' mentioned in the title? It includes
Jet features that can't even be achieved using the MS Access UI (nor
DAO) e.g. a check constraint.
And if you want to use SQL to do 'fun' things such as creating users
and altering permissions try...
Advanced Microsoft Jet SQL for Access 2000
http://msdn.microsoft.com/library/en-us/dnacc2k/html/acadvsql.asp
....but again why the title? Surely one would only want to do this kind
of thing if they *didn't* have the MS Access app?!
Jamie.
--