473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Access 2013 turn off default value for Number fields

Seth Schrock
2,965 Expert 2GB
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 1453
NeoPa
32,556 Expert Mod 16PB
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 Expert 2GB
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,556 Expert Mod 16PB
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
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
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
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
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
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
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
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
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.