Results 1 to 2 of 2

Thread: data type question

  1. #1
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116

    data type question

    what is the data/return types for an option button? I thought it was 1 for clicked, and - for unclicked, appears that I am mistaken. I am attempting to write an if based on wether or not it is checked, and cannot get either option to work.

    Can anyone help me out?

    Brandon

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Private Sub Command4_Click()
    MsgBox IsNumeric(Me!Option0)
    MsgBox Me!Option0
    MsgBox IsNumeric(Me!Option2)
    MsgBox Me!Option2
    end sub

    'Option0 is checked
    'Option2 is unchecked

    'display values
    True
    -1
    True
    0

Posting Permissions

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