G
Guest
In short: I have a check box (yes/no) in my form that the user clicks to make
a decision, when checked; a new message is stored in a field called Status in
my database. What, I am trying to do is to store “in memory†- not in any
filed - the current comment found in the Status field before gets update so
if the user change his mind and uncheck the yes/no box the system will place
back the previous comment (like UNDO). Once the form is closed, I don’t care
about permanently save the old comment anywhere. Below is what I have done
but the system still store in the database the new comment despite the user
uncheck the yes/no box (meaning the ELSE statement) Can anyone show me how to
write this code correctly? I am sure the answer it is here somewhere but when
I search I guess I am not using the correct wording. Thank you.
Dim oldStatus As String
oldStatus = Me!Status
If Me!ynNeshap = True Then
Me!Status = "Neshap approval
Else
Me!dNeshap = Null
Me!Status = oldStatus
End If
a decision, when checked; a new message is stored in a field called Status in
my database. What, I am trying to do is to store “in memory†- not in any
filed - the current comment found in the Status field before gets update so
if the user change his mind and uncheck the yes/no box the system will place
back the previous comment (like UNDO). Once the form is closed, I don’t care
about permanently save the old comment anywhere. Below is what I have done
but the system still store in the database the new comment despite the user
uncheck the yes/no box (meaning the ELSE statement) Can anyone show me how to
write this code correctly? I am sure the answer it is here somewhere but when
I search I guess I am not using the correct wording. Thank you.
Dim oldStatus As String
oldStatus = Me!Status
If Me!ynNeshap = True Then
Me!Status = "Neshap approval
Else
Me!dNeshap = Null
Me!Status = oldStatus
End If