Results 1 to 3 of 3

Thread: Check Box

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    Check Box

    Hi Everyone,

    I have a check box inside of one of the fields in an Access Database. How can I select that field through VB an know whether or not the check box has been selected or not? Thanks for any help.

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. If rs("CheckBoxFieldName") Then MsgBox "Selected"
    -= a peet post =-

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    If it's just a solitary check box you might like to consider putting it somewhere better like the registry.

    If not, then just use ADO to retrive the value. If it's -1, then it's checked, otherwise it isn't. You might need to convert it using Abs() if you intend on putting the value into a checkbox on a VB form.

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