G
Guest
this code below almost works
Private Sub Patient_Number_BeforeUpdate(Cancel As Integer)
If Me.Dirty = True And Not IsNull(Me.Patient_Number.OldValue) Then
If vbCancel = MsgBox("You are about to change the ID Number of this Patient
from " & Me.Patient_Number.OldValue & " to " _
& Me.Patient_Number.Value & "!! This change will be have the effect of
occuring everywhere throughout this database", _
vbCritical + vbOKCancel + vbDefaultButton2, "SUPER HYPER ULTRA CRITICAL") Then
Me.Patient_Number.Value = Me.Patient_Number.OldValue
End If
but for the error message. what's gone awry w/ this. when i hover over the
fields in the statement below, vba shows me the correct values
Me.Patient_Number.Value = Me.Patient_Number.OldValue
so why won't it get past this line?
Private Sub Patient_Number_BeforeUpdate(Cancel As Integer)
If Me.Dirty = True And Not IsNull(Me.Patient_Number.OldValue) Then
If vbCancel = MsgBox("You are about to change the ID Number of this Patient
from " & Me.Patient_Number.OldValue & " to " _
& Me.Patient_Number.Value & "!! This change will be have the effect of
occuring everywhere throughout this database", _
vbCritical + vbOKCancel + vbDefaultButton2, "SUPER HYPER ULTRA CRITICAL") Then
Me.Patient_Number.Value = Me.Patient_Number.OldValue
End If
but for the error message. what's gone awry w/ this. when i hover over the
fields in the statement below, vba shows me the correct values
Me.Patient_Number.Value = Me.Patient_Number.OldValue
so why won't it get past this line?