-
Checkbox Problems
I have created a Visual Basic application and am using check(tick) boxes. The fields all link into an Access Database, but when I tick one of the boxes it remains ticked and doesn't update the database.
I have got check boxes set up in the database.
Any help would be appreciated.
Adrian Harris
-
How did you link the checkbox to the database? Did you use the checked property?
-
Thanks for replying.
I used the DataBindings - Tag and set it to the Database. That is all I have done.
I must have done something wrong.
Any advice would be appreciated.
-
Post what you have done then and we'll have a look-see.
-
1 Attachment(s)
I have attached an image from the Checkbox Properties menu
-
Try switching what you have under 'Tag' to 'Checked'.
-
Thanks for your consistent help.
I have got the tick boxes working and they now correctly display the information drawn from the database.
The main problem now is that when I edit using the VB application none of the fields, whether checkboxes or textboxes update. I used 'Connect to Database' but it looks as if I must have set it to read-only.
Any help would be appreciated. Thanks again.
-
Whats 'Connect to database'? Are you talking about the server explorer? It kind of sounds like you used the IDE wizard to setup a dataset. I don't think it writes code to update it for you. Here is a site with a ton of tutorials you might find them helpful.
http://samples.gotdotnet.com/quickstart/howto/
-
That's it. I used Server Explorer. I was following the info in the Microsoft Visual Basic .Net Step by Step by Michael Halvorsen.