J
Jason Lopez
I am pretty sure the subject line is making you scratch your head. So here
is my situation in more detail.
I have a form that, before loading, runs a macro that deletes a table and
then runs a Make-Table Query to be named as the same table that was just
deleted. The issue I have is that the macro asks me all these questions of
"Are you sure you want to do this?" Is there anyway to somehow convert the
macro in to code (which I know can be done) and have coded blended in with
it to automatically give those responses when the prompt comes up? The
sequence is the same and the responses are always the same as the fastest
way to run the queries for the reports and forms that rely upon it is to
create the new table and have it refreshed each time the database loads or
the form is loaded. Essentially, the sequence is like this:
1. Delete tbl_Query (prompt appears confirming that I want to do this)
2. Run qry_MakeNewTable (prompts appear to confirm the running of the query
and that it will write x rows to the new table)
3. Open Form
Any help in automating the responses to the prompts would be greatly
appreciated.
Jason
is my situation in more detail.
I have a form that, before loading, runs a macro that deletes a table and
then runs a Make-Table Query to be named as the same table that was just
deleted. The issue I have is that the macro asks me all these questions of
"Are you sure you want to do this?" Is there anyway to somehow convert the
macro in to code (which I know can be done) and have coded blended in with
it to automatically give those responses when the prompt comes up? The
sequence is the same and the responses are always the same as the fastest
way to run the queries for the reports and forms that rely upon it is to
create the new table and have it refreshed each time the database loads or
the form is loaded. Essentially, the sequence is like this:
1. Delete tbl_Query (prompt appears confirming that I want to do this)
2. Run qry_MakeNewTable (prompts appear to confirm the running of the query
and that it will write x rows to the new table)
3. Open Form
Any help in automating the responses to the prompts would be greatly
appreciated.
Jason