Results 1 to 9 of 9

Thread: Checkbox Problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    13

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    How did you link the checkbox to the database? Did you use the checked property?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    13
    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.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Post what you have done then and we'll have a look-see.

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    13
    I have attached an image from the Checkbox Properties menu
    Attached Images Attached Images  

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try switching what you have under 'Tag' to 'Checked'.

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    13
    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.

  8. #8
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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/

  9. #9

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    13
    That's it. I used Server Explorer. I was following the info in the Microsoft Visual Basic .Net Step by Step by Michael Halvorsen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width