Results 1 to 3 of 3
  1. #1
    imonline is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2016
    Posts
    2

    Use single date range to export multiple excel spreadsheets

    I've created a macro that exports from Access 20 some odd Excel spreadsheets. My only problem is for each report a popup comes up asking for the Start Date and the another asking for the End Date.



    Is there a way I can put the Start and End date only once to run these reports?

    Any help would be appreciated.

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    put it on a form.
    the form has txtStartDate and txtEndDate.
    the query would reference this.

    select * from table where [date] between forms!frmRpt!txtStartDate and forms!frmRpt!txtEndDate

  3. #3
    imonline is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2016
    Posts
    2
    Quote Originally Posted by ranman256 View Post
    put it on a form.
    the form has txtStartDate and txtEndDate.
    the query would reference this.

    select * from table where [date] between forms!frmRpt!txtStartDate and forms!frmRpt!txtEndDate
    Thank you!!!

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

Similar Threads

  1. Replies: 3
    Last Post: 05-15-2014, 12:26 PM
  2. Replies: 1
    Last Post: 11-21-2013, 10:28 AM
  3. Replies: 11
    Last Post: 12-20-2012, 12:30 PM
  4. Replies: 4
    Last Post: 09-19-2012, 11:49 AM
  5. Replies: 4
    Last Post: 06-10-2012, 02:29 PM

Tags for this Thread

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