Results 1 to 9 of 9
  1. #1
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34

    How can I automatically update my spreadsheet with report generated from Access

    How can I update my spreadsheet with report generated from Access monthly. I have a report that I run in access monthly. Every month, I go to the database and copy ALL data including the old and current one and paste in my excel worksheet to work on. I however want to use the parameter criteria by month to just extract monthly update and only add that portion to my existing old EXCEL spreadsheet instead of copying ALL data to date over and over.

    MY QUESTIONS IS - Is there is a way to just extract the updated monthly data from access and automatically add to to my current Excel Spreadsheet to get an updated version. This is because I have a set up Model Excel spreadsheet where new data will dynamically update and the report reflecting the updated data.



    Any help will be appreciated. Thanks!!

  2. #2
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    Here is a sample worksheet (please click on the link below to see the sample worksheet) - Any and all help including VBA code will be greatly appreciated. I need to automatically update my excel file with current updated data from access database as often or monthly once I run the code.

    http://www.msofficeforums.com/excel/20923-how-can-i-automatically-update-my-spreadsheet.html#post63373

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    FROM ACCESS:
    If you are in Access you can export the data to the worksheet in the excel file with
    docmd.TransferSpreadsheet ...

    if you need to put the data in a precise range:
    Set XL = CreateObject("excel.application")
    xl.Workbooks.Open pvFile

    xl.activesheet.Cells.CopyFromRecordset rstData

    or do you HAVE to do it from the EXCEL side?

  4. #4
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    Thanks - is there a way for me to do this in Access. Please help me clarify and walk me through the easier route. Much appreciated!!

    Quote Originally Posted by ranman256 View Post
    FROM ACCESS:
    If you are in Access you can export the data to the worksheet in the excel file with
    docmd.TransferSpreadsheet ...

    if you need to put the data in a precise range:
    Set XL = CreateObject("excel.application")
    xl.Workbooks.Open pvFile

    xl.activesheet.Cells.CopyFromRecordset rstData

    or do you HAVE to do it from the EXCEL side?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Ranman's code IS from the Access side.

    Why do you need to involve Excel at all?

    Could have Excel pull the data from Access instead of Access pushing.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    Thanks June7, That's why I need help. If you can help me straighten out the best route to get this done and how. I will really appreciate it. The sample sheet can be found from the link above. Will appreciate all the assistance you can render.

    Thanks again.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Apparently I would have to create an account on that forum to download file.

    Why does Excel need to be involved?

    Sounds like you might want to explore Excel capability to link to Access.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34

    How can I automatically update my spreadsheet with report generated from Access

    How do I attach file to Access? being trying to no success. Whatever help or if you want I can send to you private email. June7, I sure will appreciate this.



    Thanks much!!!

    Quote Originally Posted by June7 View Post
    Apparently I would have to create an account on that forum to download file.

    Why does Excel need to be involved?

    Sounds like you might want to explore Excel capability to link to Access.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    What do you mean by 'attach file to Access'?

    Have you looked at Excel for setting link to Access?

    To attach file to post, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Get last ID of primary key automatically generated
    By California2013 in forum Access
    Replies: 1
    Last Post: 09-12-2013, 05:57 AM
  2. Replies: 5
    Last Post: 03-13-2013, 02:11 PM
  3. Query to automatically update report
    By kathi2005 in forum Access
    Replies: 13
    Last Post: 10-31-2011, 05:01 PM
  4. Automatically generated Copies of Access
    By arunsule in forum Access
    Replies: 4
    Last Post: 08-04-2011, 06:01 AM
  5. Set Access to automatically update
    By harrytgs in forum Access
    Replies: 3
    Last Post: 08-03-2011, 04:33 AM

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