Results 1 to 5 of 5
  1. #1
    rezanaghibi is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jun 2015
    Posts
    8

    Default Values/Placeholder Text

    Hello there

    I am outputting my Access Database to a digital PDF report, and in certain places where fields had no data, those fields don't show up at all. Not only that, but I have to create labels for each field to help with the communication design.

    What i am after is a default value inside of a given field. For instance, I have three fields for dimensions labelled Width, Height, and Depth. Not all of my items are 3-dimensional so the Depth part is often blank, but I would like to have something like "00" or "DD" in place of blank.

    Thanks in advance, I hope this has made some sense

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you can have zero,
    in the query set the field to NZ([field])
    this will give a zero instead of null.

  3. #3
    rezanaghibi is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jun 2015
    Posts
    8
    Quote Originally Posted by ranman256 View Post
    you can have zero,
    in the query set the field to NZ([field])
    this will give a zero instead of null.
    Hmm... perhaps i didnt describe what i was after right...

    imagine when you are looking at a form on any webpage. You enter your email address into one box, your phone number into another. But before you enter anything, instead of the boxes being empty, they display things like "your@email.com" or "123-555-4567"

    how can I do this?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    each box has a default setting in the property.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you do that, then the record will have the actual text "your@email.com" saved in the field if user does not overwrite. I just use labels to given instructional info like this.

    Data controls have ControlTip Text property which I think is intended for purpose of hints to users. I've never used it.
    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.

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

Similar Threads

  1. Replies: 12
    Last Post: 03-01-2015, 01:36 PM
  2. textbox placeholder
    By cbrsix in forum Forms
    Replies: 0
    Last Post: 08-06-2014, 09:16 AM
  3. create default rich text in text box
    By enemydr in forum Forms
    Replies: 7
    Last Post: 02-19-2014, 09:38 PM
  4. Simple Group By Query w a placeholder record?
    By murfeezlaw in forum Queries
    Replies: 2
    Last Post: 11-24-2012, 09:59 AM
  5. Default Values
    By twainscott in forum Programming
    Replies: 0
    Last Post: 09-14-2006, 11: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