Results 1 to 3 of 3
  1. #1
    kromedome is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2022
    Posts
    1

    getname() function

    When I was using Access 2000, I was able to configure a GETNAME() function (although I don't remember how I did it) so that I could print the name of a report on the report itself by placing a textbox on the report with a value of '=GETNAME()' on the report where I wanted the report name to appear. This was very helpful when I had several, similar-looking reports with minor variations. If I needed to modify the report, I could quickly and easily identify the exact report needing modification.



    I have not been able to figure out how to do that with Access 365. Is that still possible?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,906
    I would just use
    Code:
    Private Sub Report_Load()
    Me.txtRptName = Me.Name
    End Sub
    In fact I would hardly show the actual report name, but the description, that I would store somewhere, in a table perhaps?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,776
    similar-looking reports with minor variations
    Probably should be one report then, with the variations dealt with at run time - probably via code. Then when you make a mod to the report design, you do it once, not multiple times.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 15
    Last Post: 05-31-2017, 02:10 PM
  2. Replies: 2
    Last Post: 02-26-2017, 11:31 AM
  3. Replies: 3
    Last Post: 03-04-2016, 10:36 AM
  4. Replies: 8
    Last Post: 11-04-2014, 10:44 PM
  5. Replies: 8
    Last Post: 01-31-2014, 01:45 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