Access Macro: selecting all records

yalti

New Member
Joined
Nov 16, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello, thanks for reading.

I am trying to create a macro in Access.

I have the table opened in the macro.

i want to select all the records in the table, and delete them.

I will then import fresh data.

I cannot seem to be able to select all the records. Thanks for reading I'd appreciate if you could help!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi @Joe4 thanks for your response.

The only options I see are RunCode, RunMenuCommand, RunMacro or RunDataMacro.

Should I write an SQL query and bring that into the macro?
 
Upvote 0
Have you toggled the "Show All Actions" button in the Macros toolbar menu?
Many are hidden by default, until you click that.
 
Upvote 0
Note that I have moved your reply back to your original thread, and not the link I referenced.
 
Upvote 0
Thank you Joe -- you are quite right I did not have the option for all commands toggled on. I will update the macro as it seems like a cleaner way of doing it.
 
Upvote 0
You are welcome.

I think that it "toggled off", by default, which I find a bit annoying myself!
 
Upvote 0

Forum statistics

Threads
1,216,076
Messages
6,128,669
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top