Access to perform action every 10 minutes

Freedox

New Member
Joined
Mar 11, 2015
Messages
39
Heya, I'm totally lost here and tried numerous options to achieve this with no success...

So basically I have a button on my Access dashboard that imports EXCEL sheet in the database. I want this "import" action to be performed automatically without someone pushing a button.

I have tried the code below:
Code:
Sub my_Procedure()    MsgBox "hello world"        
    Call test ' for starting timer again
End Sub


Sub test()
    Application.OnTime Now + TimeValue("00:10:00"), "my_Procedure"
End Sub

But that is giving me Compile error: Method or data member not found

I have also tried CMD command to run:

Code:
"c:\Program Files\Microsoft Office\Office14\MSACCESS.EXE"  "\\MyServer\DB\test.accdb" /X M1

Still had no luck... Anyone know any ways around this??
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,221,691
Messages
6,161,310
Members
451,696
Latest member
Senthil Murugan

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