Results 1 to 5 of 5
  1. #1
    mara9642 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2018
    Posts
    13

    How to make a description visible in a form text box and then disappear when you type in the box.

    How to make a description visible in a form text box and then disappear when you type in the box? I would like to be able to put descriptions of the different types of data that I want in various text boxes in a form, but have that information disappear when text is entered in order to keep the data entry interface from appearing cluttered.

    Thank you!
    Theresa

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Never mind.
    See following posts.
    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
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    use the format property for the control

    use something like

    for text - @;"Enter Name"

    for numbers - ;;;[RED]"Enter Number"

    see this link for more information

    https://support.office.com/en-us/art...4-1fe286636668

    you can also combine with conditional formatting for more on background colours

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Here's a working DB with a form that shows how.
    The text to be displayed is put in the control's format property.
    As shown, if the field is to contain a date, the format must be reset in the form_current event to a value compatible with the date data type.

    Enter a new record to see the action.
    Last edited by davegri; 09-30-2018 at 08:34 AM. Reason: Replaced attachment with more comprehensive

  5. #5
    mara9642 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2018
    Posts
    13
    Thank you so much! That was exactly what I needed.

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

Similar Threads

  1. Replies: 17
    Last Post: 08-03-2017, 06:08 PM
  2. Replies: 5
    Last Post: 11-20-2015, 02:35 PM
  3. Make form visible from VBA code
    By GraeagleBill in forum Programming
    Replies: 6
    Last Post: 12-16-2014, 04:19 PM
  4. Replies: 3
    Last Post: 03-11-2014, 09:32 AM
  5. Replies: 1
    Last Post: 02-03-2012, 05:39 PM

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