Link to home
Start Free TrialLog in
Avatar of Lou Dufresne
Lou DufresneFlag for United States of America

asked on

MS Access 2013 - How do I refresh a table linked to my MS access database

I have linked a table from oracle to my MS access db using an ODBC connection to Oracle. The table name is CFR_Pivot. I want to have vba code or a macro to refresh the linked table when the user opens a form.

 Question: please provide me with the syntax for vba or the steps you recommend to use in a macro.

 Thanks for your assistance in advance

 Ldufresne
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lou Dufresne

ASKER

Scott,
    I forgot to mention that to open this ODBC table the user ckucks on abutton on a main menu form.

Question: When the user clicks on the button and opens the table is that tabe provide the most current data or does the ODBC table need to be refreshed before the user opens it from the form.

Ldufresne
Assuming your form is "bound" to that linked table, then no, you do not need to refresh. Access will fetch the most recent data from the table.
<No points wanted>
...because Scott has answered your question above

Just FYI, ...
In very rare cases, (such as when multiple users can be making multiple edits)
...a form designed to displays "all records" may not reflect all the current data at any given time.

There are settings that control how often Access will refresh the data. (just so you are aware of them)
...But generally these settings are optimized to be sufficient for most uses, ...and should not be changed.

JeffCoachman
Thanks everyone for your assistance

Ldufresne