If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
easy option control question Access 2000
I have 2 options buttons in a option group frame. I want to make a decision based on which botton is selected. But I do not get it, the value of opt 1 is 1 and opt 2 is 2. The value does not seem to change regarless of which is selected. in vb6 I can just say(with 0 being unchecked and 1 being checked and 2 being greyed out) If opt1 = 1 then statement else statement end if In access 2000 I am using opt1.optionvalue pertains to which option control it is in the group and not the selection state of the option control. can you help please -- Adam S |
#2
|
|||
|
|||
Adam,
Not sure if I understand exactly what you're asking... but... What is the name of the Optionbox itself... the control that contains Opt1 and Opt2. If it happens to be MyOptionBox, then... If MyOptionBox = 1 Then 'do something Else 'do something else End If "Newbee Adam" wrote in message ... I have 2 options buttons in a option group frame. I want to make a decision based on which botton is selected. But I do not get it, the value of opt 1 is 1 and opt 2 is 2. The value does not seem to change regarless of which is selected. in vb6 I can just say(with 0 being unchecked and 1 being checked and 2 being greyed out) If opt1 = 1 then statement else statement end if In access 2000 I am using opt1.optionvalue pertains to which option control it is in the group and not the selection state of the option control. can you help please -- Adam S |
#3
|
|||
|
|||
thank you, I thought it had to do with the the option box frAME but I could
not narrow it down. It works well. thanks "AlCamp" wrote: Adam, Not sure if I understand exactly what you're asking... but... What is the name of the Optionbox itself... the control that contains Opt1 and Opt2. If it happens to be MyOptionBox, then... If MyOptionBox = 1 Then 'do something Else 'do something else End If "Newbee Adam" wrote in message ... I have 2 options buttons in a option group frame. I want to make a decision based on which botton is selected. But I do not get it, the value of opt 1 is 1 and opt 2 is 2. The value does not seem to change regarless of which is selected. in vb6 I can just say(with 0 being unchecked and 1 being checked and 2 being greyed out) If opt1 = 1 then statement else statement end if In access 2000 I am using opt1.optionvalue pertains to which option control it is in the group and not the selection state of the option control. can you help please -- Adam S |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Data Entry Mode | bdehning | Using Forms | 17 | November 22nd, 2004 04:49 PM |
Strange behavior moving from Access 97 to Access 2000 | Dirk Goldgar | Using Forms | 2 | October 25th, 2004 06:29 AM |
Selecting particular control in Access 2000? | Dana809904 | Using Forms | 1 | October 5th, 2004 08:41 PM |
Control Toolbox Access 2000 | DiZ | Using Forms | 1 | June 23rd, 2004 02:02 PM |
Access 2003 | RK | General Discussion | 12 | June 14th, 2004 10:16 AM |