N
Niklas Östergren
Hi!
I have a small problem which I can´t solve! I should be able to do so but I
must have waken up at wrong side today ... ;-)
I need to check if user try to change a checkbox value. If so I need to
validate if the user realy want to change the valu. If not undo the change.
I have tryed this code (see below) in the checkbox BeforeUpdate_Event. But I
get a runtime error 2108 and line "Me.txtParameterDescription.SetFocus" is
marked. The changes are still made.
Any help is apreciated.
TIA!
// Niklas
=====================================
Dim strMsg, strResponse As String ' String to hold Msg to display.
strMsg = "Vill du verkligen ändra värdet?"
strResponse = MsgBox(strMsg, vbYesNo, "Ändra värdet")
If strResponse = vbNo Then
Me.chkUsedParameter.Undo
Me.txtParameterDescription.SetFocus
End If
====================================
I have a small problem which I can´t solve! I should be able to do so but I
must have waken up at wrong side today ... ;-)
I need to check if user try to change a checkbox value. If so I need to
validate if the user realy want to change the valu. If not undo the change.
I have tryed this code (see below) in the checkbox BeforeUpdate_Event. But I
get a runtime error 2108 and line "Me.txtParameterDescription.SetFocus" is
marked. The changes are still made.
Any help is apreciated.
TIA!
// Niklas
=====================================
Dim strMsg, strResponse As String ' String to hold Msg to display.
strMsg = "Vill du verkligen ändra värdet?"
strResponse = MsgBox(strMsg, vbYesNo, "Ändra värdet")
If strResponse = vbNo Then
Me.chkUsedParameter.Undo
Me.txtParameterDescription.SetFocus
End If
====================================