Here is the actual code :
DoCmd.OpenQuery "qryLocation", , acNormal, acEdit
DoCmd.TransferSpreadsheet acExport, 8, "qryLocation", stDestination, False
qryLocation selects a set of records based on a City and Street.
What I am doing is creating an Excel spread sheet based on the query.
Thanks
"Keith Wilby" <he**@there.com> wrote in message
news:44**********@glkas0286.greenlnk.net...
"RICHARD BROMBERG" <no*****@att.net> wrote in message
news:j4*********************@bgtnsc04-news.ops.worldnet.att.net...I am using the following code to run a query:
DoCmd.OpenQuery "qryLocation", acNormal, acEdit
The query works fine, but the results of the query display on the
screen. This was helpful when I was designing/debugging the application, but it
is distracting in the finished application.
Is there some way I can prevent the results from being displayed?
thanks
Why are you opening a query if you don't want to view the results? What
is it that you're wanting to achieve?
Keith.
www.keithwilby.com