
Using VBA code to refresh links
Laura, you don't have to update the tables. If they're
linked tables they will update automatically. As for the
queries you can run the with the following code:
DoCmd.OpenQuery "name", acViewNormal, acReadOnly
DoCmd.Close acQuery, "name", acSaveNo
repeat three times for your three queries
Quote:
>-----Original Message-----
>My database has some linked tables. The data in these
tables changes about
Quote:
>once a month. When these changes occur, I always refresh
the link and
>re-run my queries. Now in reading the help file on
linked tables, I think I
Quote:
>understood that the data automatically refreshes when
it's changed...but
>just in case, I always refresh the data myself and
manully run the queries.
Quote:
>I have three that need to be run in a sequential order.
>I'm making a form and want to add a button that
says "refresh data". But I
Quote:
>don't know the VBA language to do this. And our computer
guys won't load
>the VBA for applications help file on my computer.
>Would someone be willing to help me with this?
>I'm an intermediate access user, but have just started
getting into macros
>and know even less about vba.
>Thanks
>Laura Reid
>.