Results 1 to 7 of 7
  1. #1
    jmanis is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    16

    Name in form header

    I am trying to get a person's name to show up in the header of the form when their record is selected so the user knows which record they are looking at when going through the tabs.



    I have searched all over and even tried the code on some of the Access templates but nothing seems to be working.

    Does anyone have any ideas? If you are not sure what I am talking about the Faculty template has a good example and thats one of the templates I tried the code from.

    Thanks!

  2. #2
    Join Date
    May 2010
    Posts
    339
    Put something like this in a label, in the header.

    ="Contact: " & [FirstName] & " " & [LastName]

  3. #3
    jmanis is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    16
    No luck. When I put that as a label in the header it didnt do anything but show up as text.

  4. #4
    Join Date
    May 2010
    Posts
    339
    Apologies: use a unbound textbox with some thing like this in the control source. ="Contact: " & [FirstName] & " " & [LastName]


  5. #5
    jmanis is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    16
    Worked. Thank you.

  6. #6
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    even better you can manipulate the form caption to display the name of the employee:

    On the OnCurrent Event of the Form put this Code:

    Me.Caption=Me.FirstName & " " & Me.LastName

  7. #7
    Join Date
    May 2010
    Posts
    339
    You welcome glad it worked out for you.

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

Similar Threads

  1. Pretty Form Header - What is it?
    By trb5016 in forum Forms
    Replies: 3
    Last Post: 06-21-2010, 08:58 AM
  2. Editing background of header
    By Zoran in forum Reports
    Replies: 7
    Last Post: 02-27-2010, 03:30 PM
  3. Vertical alignment of page Header
    By diane802 in forum Reports
    Replies: 6
    Last Post: 01-19-2010, 12:54 PM
  4. Report Header on Each Page
    By nweird in forum Reports
    Replies: 1
    Last Post: 07-24-2009, 07:57 AM
  5. Form--Labels in Form Header
    By duckie10 in forum Access
    Replies: 1
    Last Post: 06-09-2009, 11:51 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