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

Posted on 2014-08-07
Last Modified: 2014-08-07
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

Question by:Lou Dufresne
    LVL 84

    Accepted Solution

    If the table is Linked, you don't need to refresh. Access does that for you - when the user opens the form, Access fetches the most recent data from that table.
    LVL 1

    Author Comment

    by:Lou Dufresne
        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.

    LVL 84
    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.
    LVL 74

    Expert Comment

    by:Jeffrey Coachman
    <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.

    LVL 1

    Author Closing Comment

    by:Lou Dufresne
    Thanks everyone for your assistance


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
    Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
    Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
    In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now