How can I create a Macro that will empty a table and then run a query that appends records to the same table?
How can I create a Macro that will empty a table and then run a query that appends records to the same table?
I would use VBA, but you can use RunQuery to run a delete query and then an append query.
if i use VBA do i have to add it to a button to a form for it to execute?
How did you plan to run a macro - just by clicking it in the Navigation Pane?
VBA procedures in a general module can be run from the VBA editor with the Run button.
Are you building a multi-user db or is this just for you alone?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I'll get out of the way.
multiuser- trying to make it easy for a colleague to update a linked list in sharepoint monthly. would like it to be a one click
Then regardless if you use macro or VBA, should be a form for user interface.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.