Results 1 to 5 of 5
  1. #1
    talhaparvaiz@yahoo.com is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    May 2020
    Posts
    29

    extract realtime excel data and transfer it into an Access database

    Hello,

    I possess an Excel file that gathers data from diverse sources, much of which is real-time.

    My objective is to extract this data and transfer it into an Access database, accompanied by timestamps. This allows me to maintain hourly snapshots of the data.



    To clarify further, let's consider the Excel and Access tables in the following scenario:



    Requirement
    At 9 AM, I want the data from Excel to be put into MS Access so that it will show something like this



    Please advise how to achieve it... sample code will be appreciated.

    Thanks

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Is there a missing image (or two)?

    Anyway, link to the Excel file from Access. The data will then be live.
    Every hour, run an append or update query (as appropriate) to import the data as a snapshot at that time.
    Include a datetime field with value Now() to obtain your timestamp
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    >>let's consider the Excel and Access tables in the following scenario:
    >>it will show something like this

    There are no pics in your thread if there were supposed to be. If you can link to the Excel file, you can simply run an append query hourly.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    talhaparvaiz@yahoo.com is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    May 2020
    Posts
    29
    Here are the missing images:
    Click image for larger version. 

Name:	Image 1.png 
Views:	12 
Size:	21.5 KB 
ID:	51589

    Click image for larger version. 

Name:	Image 2.png 
Views:	12 
Size:	24.5 KB 
ID:	51590

  5. #5
    talhaparvaiz@yahoo.com is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    May 2020
    Posts
    29
    I appreciate this suggestion and intend to test it out.


    To ensure clarity:


    1. I will keep my Excel file open while the data is being extracted live.
    2. Access will be linked to the open Excel file.
    3. I plan to create an append query in Access, which will extract data from step 2 and append it to the master table.
    4. This append query will run every minute, ensuring that each appended record includes a date and time stamp in the master table.


    Regarding your queries:


    Q1. Could keeping the Excel file open cause any issues?
    Q2. If the Excel file remains open, will it automatically save, or are there specific configurations/options I need to adjust to enable this?


    Once again, thank you for your assistance.





    Quote Originally Posted by isladogs View Post
    Is there a missing image (or two)?

    Anyway, link to the Excel file from Access. The data will then be live.
    Every hour, run an append or update query (as appropriate) to import the data as a snapshot at that time.
    Include a datetime field with value Now() to obtain your timestamp

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 13
    Last Post: 12-22-2018, 12:51 PM
  2. Automatic transfer data from Access to Excel
    By Sarabjit in forum Access
    Replies: 11
    Last Post: 10-20-2014, 07:27 PM
  3. Replies: 2
    Last Post: 10-16-2014, 12:08 PM
  4. Replies: 5
    Last Post: 06-12-2011, 03:58 PM
  5. How to transfer data from excel to Access?
    By mit in forum Import/Export Data
    Replies: 4
    Last Post: 06-11-2011, 05:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums