Results 1 to 3 of 3

Thread: Check Boxes in Access

  1. #1

    Thread Starter
    Member JPRoy392's Avatar
    Join Date
    Aug 2000
    Posts
    50

    Unhappy

    When I connect checkboxes in VB to Access, I have to use this code to make sure that the checkboxes are null:


    For Each ctl In frmOrderNewSheet.Controls
    If TypeOf ctl Is CheckBox Then
    ctl.Value = 0
    End If
    Next


    The value of the check boxes when the form is loaded is 0, yet without this code, VB automatically makes the boxes grayed with checks. This is annoying. Any Suggestions?

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    I'd look in your code, it sounds like something is initializing the enabled property and the value property (either specifically or by default).

  3. #3
    Member
    Join Date
    Jul 2000
    Location
    Australia
    Posts
    37
    I had a similar problem but solved it by using option buttons and setting them to the triple state, when I loaded the form they appeared blank and were then ready for use.

    Only thing is you have to reset it if the form is used over again before being reloaded

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