473,506 Members | 16,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2013 turn off default value for Number fields

Seth Schrock
2,965 Recognized Expert Specialist
I just discovered that Access 2013 puts in a default value of 0 for number fields. This is very annoying when relating fields and you get an error when trying to insert records thinking that I'm leaving the FK field blank and it has a default value that doesn't have a related record in the other table. Is there a way to turn off this "helpful" feature that Microsoft has added? I just had to go through 40 table looking for all the number fields so that I could remove the default value.
May 28 '15 #1
3 1456
NeoPa
32,557 Recognized Expert Moderator MVP
No idea whether or not it's configurable Seth, but you could knock up a relatively short piece of code to trawl through all your Forms and their TextBox controls and reset the DefaultValue property if it's set to 0.
May 29 '15 #2
Seth Schrock
2,965 Recognized Expert Specialist
I suppose that I could do that. I've just not done much with table design in VBA so I'll have to look that up. I just don't get why Microsoft would put that in!
May 29 '15 #3
NeoPa
32,557 Recognized Expert Moderator MVP
I can't help you with psycho-analysing MS, but I've done such code oodles of times so hit me up for some pointers any time.
May 29 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3536
by: Sigurd Bruteig | last post by:
Hi all! Is there a way to manipulate default value at table level, with code? I want the user to be able to alter the default value of fields in a table, without access directly to the...
3
3452
by: Ian D | last post by:
Firstly apologies for the convoluted question. I found this problem whilst building a larger database. I've distilled it down to as small as possible and can send a 200k example to anyone who has...
2
1783
by: hyphen | last post by:
I have set up two date fields in a table: 1stpromisedDate and CurentPromisedDate The first field is to record the 1st promised delivery date of a supplier and the second is to record the...
2
1292
by: Shiye | last post by:
Help...! Hi all, Does any of you know how can determine the default value of a filed to be taken from another feild (already filled) in the same row of the table??? Thanks, Shai
6
3191
by: Bob Darlington | last post by:
I want to use the caption property for fields in a recordset as a condition in a loop. That is, I only want to consider those fields which have captions: For each fld in RecordsetName.Fields If...
5
6244
by: sillyr | last post by:
Hi- I'm using Access 2007. I wanted to change a default value for a field that previously had no default value. I though it would be easy- just set the default value setting to the number t hat I...
7
1796
by: wespw1 | last post by:
Boy I cant believe I have not been on these forms for a long time. But, I found this site again. This site has not let me down before and so here goes it again. I have a POS Access 2003 POS...
1
1012
by: ESAKKI109 | last post by:
In Microsoft access 2013 how can I set last record as a default without VBA coding and macro when form opens?
1
1333
by: MatthewEliason | last post by:
I have a table called "Students" and in this table I have their student ID, which is also the unique identifier number, along with first and last name and grade. I also have an "Enrollment" table...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.