On Sun, 21 Aug 2011 06:16:42 -0700 (PDT), mi
<(E-Mail Removed)> wrote:
>Can please anyone give me some idea what I'm doing wrong.
As David points out, and I missed, is that you can't run a SELECT
query using an Execute statement because there is no action, such as
update, insert or delete to perform.
We need to know what you want to do with the query to help you
further. You likely want a recordset variable so you can loop
through the recordset and do something.
Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages -
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see
http://www.autofeupdater.com/