Results 1 to 4 of 4
  1. #1
    bell is offline Advanced Beginner
    Windows 7 64bit Access 2002
    Join Date
    Feb 2015
    Posts
    37

    Default Number value changed to 0 after I start to enter data into a form

    Hi all,

    I have a form that has number entries. I changed the Default Value for these numbers to Null because I dont want 0s (they aren't being used for numeric calculations, they just hold a number). I want there to be nothing in the input field until I put it there.

    My problem is, when I start to enter info into my form, access automatically places 0s into all my number entries! Is there a way to avoid this? Or should I just make the fields text instead?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Remove anything (0) in the field DefaultValue property in table. Then make sure textbox on form does not have anything in the DefaultValue property.
    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
    bell is offline Advanced Beginner
    Windows 7 64bit Access 2002
    Join Date
    Feb 2015
    Posts
    37
    Ohh ok I didn't realize the text box and the table entry had different DefaultValue properties, I thought the text box would inherit the property from the table entry

    Thanks

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    It will inherent when the control is first created. However, changing properties in table will not impact existing controls unless you tell it to at the time of the edit.
    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. Default value doesn't update when date is changed
    By TheHarleygirl2005 in forum Programming
    Replies: 4
    Last Post: 08-30-2013, 05:57 PM
  2. Replies: 3
    Last Post: 06-17-2012, 11:55 AM
  3. Replies: 3
    Last Post: 02-22-2011, 04:50 PM
  4. Replies: 5
    Last Post: 02-06-2011, 04:32 PM
  5. Replies: 4
    Last Post: 04-01-2009, 11:48 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