Results 1 to 3 of 3
  1. #1
    jmitchelldueck is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    51

    Change Label on Form

    Hi,



    What VBA code can I use to change the caption that is displayed to my end-user on the tabs when they open a form?

    I currently have

    Code:
    forms!myFormName.Caption = "User Label Name"
    but I don't think it actually does anything - oops!

    Thanks for the help.

    jmd

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    What event is the code in? This works for me:

    Private Sub Form_Open(Cancel As Integer)
    Me.Caption = "User Label Name"
    End Sub
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jmitchelldueck is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    51
    I had it in a module and forgot to call it in the code - switching to form open event.

    Thanks.

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

Similar Threads

  1. Replies: 13
    Last Post: 09-16-2014, 01:55 PM
  2. Replies: 1
    Last Post: 04-25-2014, 11:41 AM
  3. Replies: 6
    Last Post: 01-16-2013, 12:12 PM
  4. Change size of Label
    By amerifax in forum Access
    Replies: 1
    Last Post: 10-17-2012, 06:18 PM
  5. Change of label size
    By Zoroxeus in forum Programming
    Replies: 0
    Last Post: 06-11-2007, 08:18 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