Results 1 to 4 of 4
  1. #1
    Bkper087 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    May 2014
    Posts
    81

    Write over label inside text box?

    Is it possible to create a write over label that would appear inside a text box? For instance the field [FirstName] would have the word "First" inside the text box in a light gray as a label that would disappear when text is entered.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Have you considered using a default value for the field
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,861
    In the format property of the textbox try entering
    Code:
    @;"First"

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    To get a grey prompt for this example, set the control forecolor to grey, then the format property could be


    Code:
    [Black]@;"Enter First Name"
    This will cause the entered text to be in black
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replies: 5
    Last Post: 05-29-2018, 04:50 AM
  2. Replies: 6
    Last Post: 02-13-2017, 09:55 AM
  3. Formula and Text inside a Text box
    By trident in forum Forms
    Replies: 1
    Last Post: 04-18-2015, 02:38 AM
  4. Replies: 3
    Last Post: 01-22-2015, 12:33 PM
  5. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 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