|
-
Jun 26th, 2007, 04:18 PM
#1
Thread Starter
Lively Member
[RESOLVED] Option Button
HI i have a question
So i have 4 option( opt1, opt2, opt3, opt4) button each represent a option inside my database. and i'm reading these option into a recordset. So when i run the program, if the user chose a record the option button would be set to TRUE or False base on value in my databse.
here is my code:
Code:
Private Sub ListView1_DblClick()
If ListView1.ListItems.count > 0 Then
varFillCombo.MoveFirst
x = ListView1.SelectedItem.Index
varFillCombo.Move (x - 1)
If varFillCombo!Chamber = "CH1" Then
optCH1WP.Value = varFillCombo!Warn_Page
optCH1WE.Value = varFillCombo!Warn_Email
optCH1HP.Value = varFillCombo!Halt_Page
optCH1HE.Value = varFillCombo!Halt_Email
End If
'If Not IsNull(varFillCombo!Warn_Page) Then = varFillCombo!Name
End If
End Sub
Now when i'm stepping through the program n checking the GUI, the op1 one would set to true, then if opt2 was true, opt1 would be reset back to false, and opt2 set to true. But if opt3 was false then op2 would still be true. Then if opt4 was true then opt2 was reset back to false.
Does anyone know why it does this?
thank
Does anyone know y it does this?
Last edited by phimtau123; Jun 27th, 2007 at 01:39 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|