G
Guest
I have a situation where I want to select records in a given table and append
them to another table. I then want to run two update queries that will
adjust the quantity field of the records in both the original and the
appended table. I have written the action queries, and when manually run in
sequence, these work fine. I want them all to run sequentially upon a
OnClick event, so I combined all three into a macro group that is associated
with a command button on a form (linked to the original table). I have
created this macro group that consists of three OpenQuery actions that open
the append query, and then the two update queries in turn.
Unfortunately, the three action queries will not run in this macro. Only
the first action query will run. This is true if I run the entire group or
try to single step through them. I will get the append query acting properly
(I have not turned off the warnings, so I see each of the warning dialog
boxes), and then nothing else. There are no error messages, the macro just
quits as if the other actions were not there. In an effort to debug, I
placed MsgBoxes between the three action queries. The Append query would run
and the first message box would display. After clicking OK on that box,
nothing more happens.
I also tried placing each action query in a separate macro and making my
macro group contain three RunMacro actions and pointing each of them to the
action queries. Same result.
Can anyone give me some help on this? I have looked through a lot of web
sites (Microsoft and otherwise), but have not found any explanation for this
result.
them to another table. I then want to run two update queries that will
adjust the quantity field of the records in both the original and the
appended table. I have written the action queries, and when manually run in
sequence, these work fine. I want them all to run sequentially upon a
OnClick event, so I combined all three into a macro group that is associated
with a command button on a form (linked to the original table). I have
created this macro group that consists of three OpenQuery actions that open
the append query, and then the two update queries in turn.
Unfortunately, the three action queries will not run in this macro. Only
the first action query will run. This is true if I run the entire group or
try to single step through them. I will get the append query acting properly
(I have not turned off the warnings, so I see each of the warning dialog
boxes), and then nothing else. There are no error messages, the macro just
quits as if the other actions were not there. In an effort to debug, I
placed MsgBoxes between the three action queries. The Append query would run
and the first message box would display. After clicking OK on that box,
nothing more happens.
I also tried placing each action query in a separate macro and making my
macro group contain three RunMacro actions and pointing each of them to the
action queries. Same result.
Can anyone give me some help on this? I have looked through a lot of web
sites (Microsoft and otherwise), but have not found any explanation for this
result.