WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

What process executes the SQL statement?

 
   Home -> Office -> Query DAO RSS
Next:  Query DAO: What causes the string data, right-truncated error?  
Author Message
Conan Kelly

External


Since: Dec 28, 2006
Posts: 291



(Msg. 1) Posted: Wed Feb 20, 2008 6:43 pm
Post subject: What process executes the SQL statement? Add to elertz
Archived from groups: microsoft>public>excel>querydao (more info?)

Hello all,

What process executes the SQL statement? More importantly, how do I know
what functions I can use in SQL statements of MS Query?

If I connect to an Access DB, what process is executing the query? ...MS
Jet DB Engine? ...MS Query? ...XL?

When I created an external DB query to AC from XL, I tried to use the Date()
function in the SQL statement (ie.
Date(Year(DateFieldName),Month(DateFieldName),1) as 'FirstDayOfMonth').
When I did that, I got an error for something like "incorrect number of
arguments". So I tried DateSerial() and it worked.

How do I know what functions I can use in SQL statements of MS Query?
....functions of the DB system being queried (Access in this case)? ...XL
functions? ...VBA functions? ...MS Query functions?

Thanks for any help anyone can provide,

Conan Kelly
Back to top
Login to vote
Bill Manville

External


Since: Jul 30, 2004
Posts: 753



(Msg. 2) Posted: Thu Feb 21, 2008 7:47 am
Post subject: Re: What process executes the SQL statement? Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is not an authoratative answer, but from observation:

The functions available in MSQuery when querying Access databases are
(a) standard SQL functions for aggregation (SUM, COUNT, MAX, MIN etc)
and (b) some standard VBA functions - as available in the host
application (for example, Left, AscB, but not Error)

I suspect there must be some interface into the Jet engine that allows
the calling application to provide functions that can be used.

For example, NZ is available in queries from Access but not from Excel.

I have never found a clear answer and have had to use trial-and-error.

Bill Manville
MVP - Microsoft Excel, Oxford, England
Back to top
Login to vote
Conan Kelly

External


Since: Dec 28, 2006
Posts: 291



(Msg. 3) Posted: Thu Feb 21, 2008 4:52 pm
Post subject: Re: What process executes the SQL statement? Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill,

Thanks for the feedback.

Conan


"Bill Manville" <Bill-Manville RemoveThis @msn.com> wrote in message
news:VA.00001480.1780d860@msn.com...
> This is not an authoratative answer, but from observation:
>
> The functions available in MSQuery when querying Access databases are
> (a) standard SQL functions for aggregation (SUM, COUNT, MAX, MIN etc)
> and (b) some standard VBA functions - as available in the host
> application (for example, Left, AscB, but not Error)
>
> I suspect there must be some interface into the Jet engine that allows
> the calling application to provide functions that can be used.
>
> For example, NZ is available in queries from Access but not from Excel.
>
> I have never found a clear answer and have had to use trial-and-error.
>
> Bill Manville
> MVP - Microsoft Excel, Oxford, England
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Query DAO All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET