Results 1 to 7 of 7
  1. #1
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92

    Form Section; Need "N/A" as Default in a Field

    Hi,

    One of the fields on my form has ID field (can input either number, text, or both). It looks unprofessional when I am printing reports for ID because some are blank. How can I make that field to have automatic "N/A" when the field is blank? I put ="N/A" as Default Value but no use.

    Thanks for your help in advance



    netchie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    You can either set the default in the table so that new record is created with this value and then can replace it in data entry. Or in report textbox control source use expression: =Nz(ID, "N/A")
    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
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92
    Hi June 7,

    Thanks for your advice. I forgot that my ID field is not allowing duplicates so I think it will kill the purpose if it's automatic N/A. Any other ideas?

    How about when they left it blank, a new pop-up will appear saying they need to put N/A? Oh, again, I forgot it will still be a duplicate, bummer! Is there something like no dupliclates except the word "N/A"? How can I do that?

    Your help is as always highly appreciated

    Thanks,
    netchie

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Why are they allowed to leave a blank? How is the ID generated?

    Just do the expression in report textbox to handle the null.
    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.

  5. #5
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92
    Sometimes supplies have ID#s and some don't have them that's why the report is showing some blank ID#.

    Again, thanks for your time and advice

    netchie

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Solved?

    The Nz suggestion will work as long as empty strings are not allow in the table field.
    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.

  7. #7
    netchie is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    92
    Yup! solved

    Thanks June7!

    netchie

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

Similar Threads

  1. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  2. Form error "the current field must match..."
    By plavookins in forum Forms
    Replies: 0
    Last Post: 04-13-2011, 07:42 AM
  3. Replies: 8
    Last Post: 11-12-2010, 10:55 AM
  4. Combined "person" field on form
    By Remster in forum Forms
    Replies: 14
    Last Post: 09-15-2010, 10:44 AM
  5. Replies: 12
    Last Post: 06-14-2010, 08: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