R
Reggie Laffond
I saw a post on this dated 10/25/04 with replies by MARSH but I don't think
it was resolved. I'm having a similar problem but I didn't want to hijack
the thread.
Access 2000 - When a user changes the value of an option group by selecting
a different radio button I want to confirm that the user really wants the
change. The radio buttons are definitely members of the frame because the
value in the field bound to the option group has been changing correctly up
until now. Here is the code I am adding.
Private Sub optTstSide_BeforeUpdate(Cancel As Integer)
If MsgBox("Are you sure you want to change the test side value?",
vbYesNo) = vbNo Then
Me.optTstSide.Undo
End If
End Sub
If the user answers the message box with vbNo the "Me.optTstSide.Undo" code
runs but the value of the option group still changes to the value of the new
radio button selected.
I put this in the option group BeforeUpdate event because I want to prompt
the user immediately when the value is changed and not wait until the form's
BeforeUpdate event.
I even tried Me.optTstSide.Requery after the undo but no luck.
Thanks in advance.
it was resolved. I'm having a similar problem but I didn't want to hijack
the thread.
Access 2000 - When a user changes the value of an option group by selecting
a different radio button I want to confirm that the user really wants the
change. The radio buttons are definitely members of the frame because the
value in the field bound to the option group has been changing correctly up
until now. Here is the code I am adding.
Private Sub optTstSide_BeforeUpdate(Cancel As Integer)
If MsgBox("Are you sure you want to change the test side value?",
vbYesNo) = vbNo Then
Me.optTstSide.Undo
End If
End Sub
If the user answers the message box with vbNo the "Me.optTstSide.Undo" code
runs but the value of the option group still changes to the value of the new
radio button selected.
I put this in the option group BeforeUpdate event because I want to prompt
the user immediately when the value is changed and not wait until the form's
BeforeUpdate event.
I even tried Me.optTstSide.Requery after the undo but no luck.
Thanks in advance.