Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro Will Not Rerun

Status
Not open for further replies.

KrissyB

Technical User
May 2, 2003
27
CA
I have built a switchboard that contains 4 buttons, each that runs a different query. I want one of the buttons to be rerun as many times as the user needs to utilize it. However, at the current time, I run the macro, it performs, then reverts to switchboard (perfect) but will not let me run it again. Any reasons why this happens or how to fix it would be appreciated.

The macro currently is very simple:

setwarnings
openquery
openquery
sendobject
close

Thanks

Christine
 
This may not be a fix but I have noticed that if SetWarnings (No) is used at beginning, usually it is required at the end SetWarnings (Yes). There have been a couple of reports/queries that acted as you described until the last SetWarnings was inserted.

As mentioned, I don't know if this will fix it off the bat, but it seemed to fix the difficulty in my report/query.



Thank you for any and all help,

PBrown
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top