Rx_
Nothing In Moderation
- Local time
- Today, 09:48
- Joined
- Oct 22, 2009
- Messages
- 2,803
Trying to automate something that runs manually.
To meet a deadline, trying to avoid pasting in the large SQL code for an update query.
The steps are to:
1 delete the data in three temp tables.
2 reset the autocounter code back to 1 in two of the tables
3 (my quesiton)
I have three update queries to re-populate the three tables above
What is the best code to call an existing query (no parameters to pass)?
Docmd.runsql "name of query"
expects to "Select, Delete..."
To meet a deadline, trying to avoid pasting in the large SQL code for an update query.
The steps are to:
1 delete the data in three temp tables.
2 reset the autocounter code back to 1 in two of the tables
3 (my quesiton)
I have three update queries to re-populate the three tables above
What is the best code to call an existing query (no parameters to pass)?
Docmd.runsql "name of query"
expects to "Select, Delete..."