Question : Timer function to automate Access

What is the best way to have Access automatically (at some time interval) read data from an Excel worksheet and then write that data as a record?  Does this require writing a custom macro in VBA? If so, would you please include some example code.

I was able to do this manually by creating an append query, although, it is not possible to access the OnTimer or TimerInterval property for this object.

Answer : Timer function to automate Access

I have managed this in the past by creating a hidden form that opens when the database opens. The form has a timer event, which can be used to fire a VBA macro at whatever timer interval is set. Have used it effectively in the past to read data from a currency feed.

Just be very carefl that you don't leave instances of Excel running and keep create creating new ones or you'll rapidly run of out memory.


Kelvin
Random Solutions  
 
programming4us programming4us