How to let Access to run my code every 1 hour automatically?

timwangTM

New Member
Joined
Jan 12, 2005
Messages
44
I know Excel can run my VBA code every 1 hour automatically by putting the code in the event Workbook_Open, just have my code including the line like Application.OnTime...

Can Access achieve this? Does Access have the mothod like OnTime?

I currently have this requirement from my users says "pls let let Access to import Excel data outside into Access every 1 hours AUTOMATICALLY instead of let me just click the button in the screen."

Anyone pls help to comment.

Thanks in advance,
Tim
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,452
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Re: How to let Access to run my code every 1 hour automatica

Hi Tim
I'm not sure if this will help but you can create a form which has a timer interval that you can set to run a macro (or an event procedure). If you go into the form design, have a look at the properties -> Event -> On Timer & Timer Interval properties.
HTH, Andrew. :)
 

timwangTM

New Member
Joined
Jan 12, 2005
Messages
44
Re: How to let Access to run my code every 1 hour automatica

Thank Andrew. It do works. I just use it in my application, perfect result, what I exactly want. So simple but effective solution. Thanks a lot.

Good weekend.
 

Forum statistics

Threads
1,181,819
Messages
5,932,226
Members
436,826
Latest member
Rsavary

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
Top