programmatically refreshing data
hi folx!
i've got an Access application that calls excel to download a table of data
from an odbc source. the reason, in case you care to know, is that
particluar table has too many indexes for Access to absorb, and excel is
dropping them rather nicely so i can access the data.
here is the call:
Set oApp = CreateObject("Excel.Application")
Set oDoc = oApp.Workbooks.Open(CurrentProject.Path & "Customer.xls")
oDoc.RefreshAll
DoEvents
oDoc.Close SaveChanges:=True
DoEvents
CurrentDb.TableDefs("Customer").RefreshLink
it doesn't work. it functions, sure, but the data is not refreshed and no
errors are reported.
anybody got any clues/suggestions/solutions here?
thanks in advance!
jon
|