C
calsteve
Hi,
Have an Access 2003 database. The procedure is supposed to populate a
checkbox called PhysReview when a aate is entered in the DenialDate field. It
doesn't. What did I forget to do?
Thanks,
Steve
Private Sub DenialDate_AfterUpdate()
On Error GoTo Err_DenialDate_AfterUpdate
Dim stDate As Date
Dim intWeeks As Long
'Save data already entered
Me.Refresh
'Set Physician Review flag
Me!PhysReview = True
stDate = Me!DenialDate
If stDate > Now Then
MsgBox "WARNING: The Denial Date you entered is in the future"
GoTo Exit_DenialDate_AfterUpdate
End If
intWeeks = DateDiff("w", Now, stDate)
If Abs(intWeeks) > 0 Then
MsgBox "WARNING: The Denial Date you entered is more than 1 week in
the past"
GoTo Exit_DenialDate_AfterUpdate
End If
Exit_DenialDate_AfterUpdate:
Exit Sub
Err_DenialDate_AfterUpdate:
MsgBox Err.Description
Resume Exit_DenialDate_AfterUpdate
Have an Access 2003 database. The procedure is supposed to populate a
checkbox called PhysReview when a aate is entered in the DenialDate field. It
doesn't. What did I forget to do?
Thanks,
Steve
Private Sub DenialDate_AfterUpdate()
On Error GoTo Err_DenialDate_AfterUpdate
Dim stDate As Date
Dim intWeeks As Long
'Save data already entered
Me.Refresh
'Set Physician Review flag
Me!PhysReview = True
stDate = Me!DenialDate
If stDate > Now Then
MsgBox "WARNING: The Denial Date you entered is in the future"
GoTo Exit_DenialDate_AfterUpdate
End If
intWeeks = DateDiff("w", Now, stDate)
If Abs(intWeeks) > 0 Then
MsgBox "WARNING: The Denial Date you entered is more than 1 week in
the past"
GoTo Exit_DenialDate_AfterUpdate
End If
Exit_DenialDate_AfterUpdate:
Exit Sub
Err_DenialDate_AfterUpdate:
MsgBox Err.Description
Resume Exit_DenialDate_AfterUpdate