Access fills in blank fields

GolfingTitan116

New Member
Joined
Dec 3, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello.

I'm new to Access but learning quick. I have several dropdowns on my Form, which I want to be blank when end user opens the form. So I set the Default Value to blank, but for some reason, when you fill in any other field in the form, it populates those dropdowns with "No".

Here you can see the form without typing anything in:

1.png


Here, as soon as I fill in the Due Date, the drop downs to the right populate with "No":

2.png


Any idea why this would be happening?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How are those 2 drop downs set up in both the form and the table that they are being fed to/from?

I suspect that your Date Requested is defaulted to the current date, so it doesn't create the record in the table until you populated the Due Date, at which is when you see the two "No" populations.
 
Upvote 0
So, both dropdowns were created the same, so I'll just focus on the one.

The first image is from the table... the 2nd is from the form.

3.png


4.png


Again, I'm learning Access, so I'm not sure if that's the information you need. Please let me know if you need anything else and thanks for the help!
 
Upvote 0
I believe the Yes/No data type won't allow for a null once the record is established. So you will want to create the field in the table as a Short Text, and then add some pieces to the Lookup tab (you have that tab displayed on your first screenshot):
 

Attachments

  • Capture.PNG
    Capture.PNG
    19 KB · Views: 9
Upvote 0
If not using the table design options, true false, yes no, on off fields should be integer, not text. Use values of -1,0 (T/F)
You should be able to delete yes no field so I'm thinking that claim is incorrect. Besides, the 2nd pic shows the use of a table level lookup field, which is a different animal. Seasoned developers will tell you to not use them (nor spaces, special characters in object names, which you are doing). Exception is underscore.
Also not a good idea to use attachment fields - you can quickly reach db size limit.
Code could be causing your issue but I've no idea if you have any.
 
Upvote 0
If not using the table design options, true false, yes no, on off fields should be integer, not text. Use values of -1,0 (T/F)
You should be able to delete yes no field so I'm thinking that claim is incorrect. Besides, the 2nd pic shows the use of a table level lookup field, which is a different animal. Seasoned developers will tell you to not use them (nor spaces, special characters in object names, which you are doing). Exception is underscore.
Also not a good idea to use attachment fields - you can quickly reach db size limit.
Code could be causing your issue but I've no idea if you have any.
No, no code at all. Way too new to Access to try that.
 
Upvote 0
You probably should research normalization, then. I suspect you will be influenced by your Excel thinking, which will not be good. One thing I see is that if you have a user/employee table, you're storing their names in that table instead of their related primary key value. Your table pic showed no evidence of a lookup field so I don't understand how that came into the picture. You've accepted that as a solution even though you shouldn't use them.
 
Upvote 0
This is where I'm coming from. A bit old looking, but Allan was an absolute Access guru. Sadly, he's no longer working in Access.

See what you think. Perhaps a good idea to bookmark his site or some of its topics.
The potential issue you could run into with "Yes" is that it's text and in some cases, you'd have to convert "Yes" to boolean data type in order to use it. For a simple query it should be ok though. Just saying you might want to consider the suggestion rather than have "yes" in some cases and booleans or numbers in other cases. I'm still not understanding how this fits in with lookup fields.
 
Upvote 0

Forum statistics

Threads
1,223,588
Messages
6,173,219
Members
452,505
Latest member
Neeraj1990

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top