Results 1 to 4 of 4

Thread: Check Box Problems

  1. #1

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Check Box Problems

    Hi guys,

    What code will allow you to carry out an action based on whether or not a Check Box on a form is ticked?

    So far, I've been using a check box called Chk1 and a command button called Cmd554.

    I've been using the following code in the Cmd554_Click() event procedure -

    VB Code:
    1. If Radio.Value = True Then
    2.         MsgBox "Ok"
    3.     End If

    But that just brings up an error saying "You entered an expression that has no value" and highlights the

    VB Code:
    1. If Radio.Value...

    line of the code.

    Any help would be apprecitated.

    Thanks
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Check Box Problems

    VB Code:
    1. If Check1.Value = vbChecked Then
    2.     MsgBox "Checked"
    3. End If


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Addicted Member MethadoneBoy's Avatar
    Join Date
    Oct 2001
    Location
    Preferably somewhere between Keira Knightley and Diane Kruger but I'm not fussy
    Posts
    180

    Re: Check Box Problems

    Tried that, same error. Thanks for the suggestion, though.

    Any ideas?
    "'Oh, hello Mr. Crick! What do you think of Jeffrey Archer?' Clip-clip-clip! Oh, come on! Who are you kidding? You wait til I'm mayor, you'll see how tough I am! Christ almighty...."

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Check Box Problems

    Are you sure it's a checkbox? What is Radio?


    Has someone helped you? Then you can Rate their helpful post.

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