Results 1 to 5 of 5
  1. #1
    stojankocev is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    3

    Export to Excel

    Good day everyone,



    i am new to this forum and also i have no knowledge from Microsoft Access. So i need your help.
    I have one Access database that is filed with data from scale, and i need this data to be exported to Excel, daily. So what i need is someone to make me, because i don't know programming, so kind of script or software that every day at 8:00h will export records from access in to excel, from the past day, and to create new excel for each day. For exp. today is 01.05. at 8:00 h to export the records from 30.04. in to excel.


    Thanks you in advance,

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    In a form, set the form timer = 1000. (one second)
    past the OnTimer code below into the form as well.
    or have a button click event , have it save the query to excel

    Code:
    sub form_OnTimer()
    if format(now(),"hh:nn:ss")= "08:00:00" then  Export2XL
    end sub
    
    sub Export2XL()
    dim vFile
    
    vFile = "c:\folder\MyFile_" & format(Date(),"yymmdd-hhnn") & ".xls"
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "qsQuery", vFile, True
    end sub
    
    
    sub btnExport_click()
     Export2Xl
    end sub

  3. #3
    stojankocev is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    3
    Can you explain me exactly what to do, because i mention that i don't know access and programming?

  4. #4
    stojankocev is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    May 2017
    Posts
    3
    Anybody else to help me ?

    Thanks,

  5. #5
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Did you follow Ranman's instructions?

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

Similar Threads

  1. Replies: 3
    Last Post: 04-07-2016, 04:36 AM
  2. Export Queries to Excel with Combo-Box visible in Excel
    By johnmarc2 in forum Import/Export Data
    Replies: 1
    Last Post: 07-07-2014, 05:33 PM
  3. Replies: 7
    Last Post: 04-25-2013, 03:47 PM
  4. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  5. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 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