Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Run A Query with a Macro in MS Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Love Buzz - 17 Jul 2007 00:10 GMT
I have a really easy question, I think anyway.

I have several update queries that I would like to run with one macro.  
However, I only see the 'open' and 'close' Actions under the Macro template.

Is there a way to run several update queries with one macro w/o opening the
query?

Hope that made sense...thanks for your help.
KARL DEWEY - 17 Jul 2007 00:34 GMT
Just use the OpenQuery action.  Add a new action entry for each query.

You might want to turn off warnings as first action and on again as last
action.
Signature

KARL DEWEY
Build a little - Test a little

> I have a really easy question, I think anyway.
>
[quoted text clipped - 5 lines]
>
> Hope that made sense...thanks for your help.
jdenny@rtccom.net - 17 Jul 2007 01:26 GMT
I am new in useing MP4's and I just got a new dell lap top with windows
vista.I need to know are they compatable with each other or do I need to
down load a patch?
John W. Vinson - 17 Jul 2007 01:44 GMT
>I am new in useing MP4's and I just got a new dell lap top with windows
>vista.I need to know are they compatable with each other or do I need to
>down load a patch?

I would suggest you post in a more appropriate newsgroup. This one is for the
database software Microsoft Access - not for general Windows questions.

            John W. Vinson [MVP]
jdenny@rtccom.net - 17 Jul 2007 05:55 GMT
>I am new in useing MP4's and I just got a new dell lap top with windows
>vista.I need to know are they compatable with each other or do I need to
>down load a patch?
Love Buzz - 17 Jul 2007 17:42 GMT
Thanks Karl.  I didn't think it would be that easy.

Is there a way to bypass the 'are you sure' messages so that the update
query runs with just a selection of the macro?

Thanks for your help.

> I have a really easy question, I think anyway.
>
[quoted text clipped - 5 lines]
>
> Hope that made sense...thanks for your help.
KARL DEWEY - 17 Jul 2007 18:46 GMT
Make your first action Set Warnings - Off.
Make last action Set Warnings - On.
Signature

KARL DEWEY
Build a little - Test a little

> Thanks Karl.  I didn't think it would be that easy.
>
[quoted text clipped - 12 lines]
> >
> > Hope that made sense...thanks for your help.
Steven Chicago,Illinois - 24 Jul 2007 20:40 GMT
Karl,

 I am setting the warnings off and then back on again at the end of the
Event. And I am very happy with the warning messages not popping up, as I
know it would confuse the end-user. But is there a way to allow(code) to see
more severe messages? Like a error message when the user is trying to add
duplicate records? I am wondering if there are a few select messages that we
really do want to see, and that access considers them just warnings, while
some of us would consider them error messages (duplicate keys, etc..). I have
been searching help and the discussion group to see if there are any
options/message severity levels that we can opt for when turning off
messages. I am worried that access may consider my query to copy a table to a
backup table name, that fails a warning message and then continue in the
event/or macro to execute the next query and update my table, and then clear
out my input table source. And I think you can see what I am trying to say...
 Maybe I don't understand the difference between a warning and a error?
Signature

Thanks for your Help and Patience.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.