UPDATE DATA FROM LINKED EXCEL (1 Viewer)

shades7

New member
Local time
Yesterday, 21:33
Joined
Sep 25, 2022
Messages
2
I am trying to create a button on a main menu form that when clicked on will automatically update all data of several linked tables (location of raw data is a single excel workbook with each table being represented by its own excel tab sheet. I know it can be done with a button per table/tab but is there a way to do all tables/tabs with just one command button.

or is there a way to have all of the data update automatically as soon as the access db is opened.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 18:33
Joined
Oct 29, 2018
Messages
21,623
You can have the button do multiple things by simply adding all the tasks within the same code block.
 

shades7

New member
Local time
Yesterday, 21:33
Joined
Sep 25, 2022
Messages
2
I figured that and tried it but I am guessing I am not combining them in the correct way so would i created private subs for each or keep them all in the same one
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 18:33
Joined
Oct 29, 2018
Messages
21,623
I figured that and tried it but I am guessing I am not combining them in the correct way so would i created private subs for each or keep them all in the same one
You can keep them all in one, but you'll have to test each piece separately.
 

Users who are viewing this thread

Top Bottom