Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2008, 01:27 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checkbox indeterminate problem (I think)

I have same problem in 2005 & 2008. MS Access 2003 DB, windows Vista OS.

I created a DB in Access. I added the DB, selected details and dragged it onto the form where it created the the table adapter, bindingsource and binding navigator. Everything works great except when I click the "add" button on the binding navigator all the checkboxes get filled with a solid square (which I assume is the indeterminate state). The data type for the checkboxes in the DB is set to Yes/no, format is true/false, I even added a default value of false and a validation rule to "true or false". I assume this prevents a null state in access but not sure. I even tried a checkbox1.checked=false in the add button click event. Nothing I tried works as I want all the boxes to be unchecked when I when I click the "add button". Also the Threestate property for the checkboxes is set to false. Anyone got a clue??? cuz i'm baffled.
 
Old March 30th, 2008, 10:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there.. Before anything, any "rule" that you add to the database stays inside the database (is not replicated to anywhere). Said that, I don't have a clue about why you see the checkboxes in that state.. Could be a settings problems? (like for example the color of the checkbox?)

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old March 30th, 2008, 12:35 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its strange. It only does it with the add button. I can view all the records I added when the form loads, all the checked boxes look right and all the unchecked boxes look right, like there was never a problem, its only when I click the add button do all the boxes show a solid blue square.





Similar Threads
Thread Thread Starter Forum Replies Last Post
multi checkbox problem deean Classic ASP XML 0 June 30th, 2008 12:43 AM
checkbox problem sarvesh189 ADO.NET 1 March 21st, 2005 03:44 AM
Checkbox problem peterB Access VBA 3 February 20th, 2005 05:17 AM
CheckBox Insert Problem blink Classic ASP Databases 1 September 4th, 2003 12:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.