Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Naming a report.

    I've seen a few guides on naming reports and all it suggests is to put the name in the header.

    My reports are named after the report object itself. Not after the header.

    Maybe I'm missing something, but I want to include the date in the report name when its exported. Is there some option I must enable to name after the header?

    Cheers,

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Reports can be named anything you want.
    to export w date , select report from a list box...lstRpts

    vFile = "c:\folder\" & lstRpts & "-" & format(date(),"yyyymmdd-hhnn" & ".pdf"
    Docmd.outputTo acOutputReport lstRpts, acFormatPDF, vFile

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I'm using a macro on the button click event.

    the "object name" is the report name. It has to be this to select the report. I did try changing this but it didn't work. Maybe with some & " symbols it will? haha. Or should I scrap that and do some VBA?

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

Similar Threads

  1. Query naming error help?
    By josh21 in forum Queries
    Replies: 4
    Last Post: 05-14-2015, 03:10 AM
  2. Automatic Document Naming
    By dbakeg00 in forum Access
    Replies: 7
    Last Post: 01-22-2015, 03:25 PM
  3. Naming Forms
    By buckwheat in forum Access
    Replies: 4
    Last Post: 08-06-2013, 01:13 PM
  4. Naming scheme thru VBA
    By redbull in forum Programming
    Replies: 10
    Last Post: 04-10-2012, 02:37 PM
  5. Naming conventions
    By Yesideez in forum Database Design
    Replies: 3
    Last Post: 06-29-2011, 08:55 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