Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45

    how to change 0 default value to blank when new record opens

    Okay I need that when a new record opens for data entry that the numeric fields are blank. Now when I open a new record the numeric fields have a 0 default value and this could create error when user is entering new data as they have to delete the 0.



    Many thanks
    Marilia

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The table properties has a Default value for that field. To what do you have that property set?

  3. #3
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by RuralGuy View Post
    The table properties has a Default value for that field. To what do you have that property set?
    The default property is blank so I don't know why it does it. I think it is because it is access 2007

  4. #4
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    To set 0 to be the default value. Just type 0 in the default value property.
    Currently it is set to NULL. To select them just use criteria "IS NULL".

  5. #5
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by lfpm062010 View Post
    To set 0 to be the default value. Just type 0 in the default value property.
    Currently it is set to NULL. To select them just use criteria "IS NULL".
    I do not want 0 I want it blank so that the user enter the value

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by nightangel73 View Post
    The default property is blank so I don't know why it does it. I think it is because it is access 2007
    Hmm...how about the default value in the control on the form? Is it set to anything? We can fix it with code if everything else fails.

  7. #7
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by RuralGuy View Post
    Hmm...how about the default value in the control on the form? Is it set to anything? We can fix it with code if everything else fails.
    Okay I set the default value to Null and it works except in one form arggghh

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Look at the properties of the control on that form. Where did you set the default value? Table, Form?

  9. #9
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by RuralGuy View Post
    Look at the properties of the control on that form. Where did you set the default value? Table, Form?
    I set the default value at the text box on the form to Null

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    And it didn't work on one of your forms, right?

  11. #11
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by RuralGuy View Post
    And it didn't work on one of your forms, right?
    Yes, only in own form it didn't work. Don't know why. The only thing that is different in this form is a text box that has a dLookup routine

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What kind of a "DLookup routine? Show us please.

  13. #13
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Quote Originally Posted by RuralGuy View Post
    What kind of a "DLookup routine? Show us please.
    Nevermind. I don't think it's going to work. I'm thinking maybe if I can set a command button to do what the lookup function does for the text box I may get rid of the problem. A command button that displays the value in a message box. Thing is the value is not a stored value is calculated value that doesn't get stored (stock in hand).

  14. #14
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    Or is it there another workaround for these annoying 0's on the form. I'm just afraid it will make data entry errors by the users because they have to delete this 0's to enter new data. It sucks! My database is perfect except for this crap.

  15. #15
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45
    I tried making the text box null when on got focus but it still messes up with the text box with the lookup function.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 03-17-2014, 09:01 AM
  2. Replies: 3
    Last Post: 09-27-2013, 07:56 AM
  3. Very strange issue: form opens blank
    By spleewars in forum Programming
    Replies: 5
    Last Post: 06-01-2012, 12:47 PM
  4. Replies: 1
    Last Post: 07-14-2011, 05:44 AM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 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