There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
audio bios blue screen boot bsod computer connection crash dcom dell driver drivers email error excel firefox google hard drive hardware hijackthis internet laptop logon logs off macro malware microsoft motherboard network networking problem ram recovery router screen slow software sound trojan usb userinit.exe virus vista webcam wifi windows windows 7 windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
ms access default value check box

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
timdub's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Apr 2007
Experience: Trainer/Consultant
03-Apr-2007, 11:06 AM #1
ms access default value check box
Hi,

I have a MS Access form based on a table. In the table, there are yes/no fields (check boxes). There is no default value set. When I created a form based on the table, I made an option group for the yes/no fields. Again, I did not set a default value. When I start a new record, the check boxes are empty, but as soon as I enter any info into the record, the check boxes default to No (even if they are not checked either way in the table). How can I keep them empty until I make a choice?

Thanks.
slurpee55's Avatar
Computer Specs
Distinguished Member with 6,606 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
03-Apr-2007, 02:33 PM #2
I can't duplicate this problems - can you upload your database so we can look at it?
(If it is large, go to Tools, compact and Repair and then zip it prior to uploading).
Welcome!
timdub's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Apr 2007
Experience: Trainer/Consultant
04-Apr-2007, 09:50 AM #3
Here is the database attached. Note the yes/no fields for "Pass Client Test". Thanks for your help.
Attached Files
File Type: zip Training.zip (45.9 KB, 271 views)
slurpee55's Avatar
Computer Specs
Distinguished Member with 6,606 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
04-Apr-2007, 10:28 AM #4
here you go
Yes/No items have to be in an option box for you to get one or the other - see the attached form set up that way.
Attached Files
File Type: zip Training.zip (53.3 KB, 508 views)
timdub's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Apr 2007
Experience: Trainer/Consultant
04-Apr-2007, 12:02 PM #5
Thanks, but I'm still seeing the same problem. I did have mine in an option box, but with no default value set. However, when entering a new record, it automatically went to "No" on the form. Try it and see.

I noticed on yours, you set the default value to -1 (yes). Is there a way to do it so that it doesn't have a default value AND it doesn't check on anything until you want it? In my database, I don't want a yes or no until it is physically checked on. Otherwise it should stay blank.

Either way, I noticed it doesn't update in the table itself. The form will automatically check on No, but the table check box stays blank -- ??
slurpee55's Avatar
Computer Specs
Distinguished Member with 6,606 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
04-Apr-2007, 03:13 PM #6
If you don't have default values of -1 and 0 for the two options you will not see a result - on the form - when you click on the box (it will, however, make a change in the table). You get the same result if you try to not have a control source for the option box but just for the checkboxes - no visible change on the form, but a change in the table. As for not updating, the changes you make are not visible while the form is still open (even if it is another window) - you have to close the form to see the updates in the table.
Closed Thread Bookmark and Share   techguy.org/557707

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:53 PM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.