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

    Unique report name?

    Normally when making reports, Its usually related to one thing. Such as; a project; a job or an order. Now I'm making a report that really doesn't have ONE table that relates them all.



    So what I would do normally is implement an "issue" system. Where by every time a report is created it adds 1 to the issue number making every report unique.

    I'm wondering how to best achieve a unique report name when I cant simply increment a single record (its a very flat structure and could be any of the records).

    Its just a theory question I'm after some ideas.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    providing you don't want an incremental value, use the Now() function - formatted perhaps as yymmddhhmm for easy sorting

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Shockingly obvious. Thanks!

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    suggest put the datetime value at the beginning of the file name - will be neater

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    for anyone attempting this.

    Code:
    ="C:\Users\ah\Desktop\SAGE_IMPORT\" & Trim(Format(Date(),"yyyy_mm_dd")) & ".xlsx"
    Backslashes in a file path will look for a new folder. formatting like this will stop that. (I've encountered this before and took me days to figure out what the problem was. Another obvious one.)

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

Similar Threads

  1. How include a unique number on a report?
    By Bazsl in forum Reports
    Replies: 2
    Last Post: 06-24-2016, 02:59 PM
  2. Count Unique Records in a Report
    By Mohmand in forum Reports
    Replies: 2
    Last Post: 09-10-2014, 10:44 PM
  3. Report with Unique Fields as Columns
    By carcement in forum Access
    Replies: 1
    Last Post: 04-24-2014, 02:55 PM
  4. Create a unique report
    By top1hat19 in forum Reports
    Replies: 1
    Last Post: 01-31-2011, 12:42 PM
  5. Auto Unique Number on every REPORT
    By imvineet in forum Access
    Replies: 3
    Last Post: 09-09-2010, 08:08 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