A
AJ Raiber
Hello!
I have a macro that is designed to run a series of queries
to identify and append information from one table to
another and then delete the information from the first
table. The set up is this:
Record 8 in tblA meets the criteria. So, when the macro
runs it first opens the append querry "qryappend" in
design view. This query pulls based on the desired
criteria, selects record 8 and appends it to tblB. The
next command runs the query with the RunCommand feature.
Then the macro closes qryappend. Next the macro
opens "qrydelete" , a delete query which uses the same
criteria as qryappend, in datasheet view which deletes
record 8 from tblA. The Macro then closes qrydelete.
The issue here is that when this runs I get a series of
pop-up windows which ask me if I really want to run the
append query and then if I want to append the rows and
then if I want to run the delete query and then if I want
to delete the rows. The answer to each of these will
always be yes. Is there a way to make the system
automatically choose yes on these items? If not in the
Macro can I do this through VBA?
Thank you!
I have a macro that is designed to run a series of queries
to identify and append information from one table to
another and then delete the information from the first
table. The set up is this:
Record 8 in tblA meets the criteria. So, when the macro
runs it first opens the append querry "qryappend" in
design view. This query pulls based on the desired
criteria, selects record 8 and appends it to tblB. The
next command runs the query with the RunCommand feature.
Then the macro closes qryappend. Next the macro
opens "qrydelete" , a delete query which uses the same
criteria as qryappend, in datasheet view which deletes
record 8 from tblA. The Macro then closes qrydelete.
The issue here is that when this runs I get a series of
pop-up windows which ask me if I really want to run the
append query and then if I want to append the rows and
then if I want to run the delete query and then if I want
to delete the rows. The answer to each of these will
always be yes. Is there a way to make the system
automatically choose yes on these items? If not in the
Macro can I do this through VBA?
Thank you!