G
Guest
I have 2 calculated fields, one in a form and one from the subform. I'm
comparing the calculated ending dates as follows:
Private Sub contract_end_date_BeforeUpdate(Cancel As Integer)
If Me.CalcEndDate([Me.Term_type], [me.Term_mos], [me.Acceptance_date]) >=
[Forms]![frmEffective_contract]![Contract_end_date] Then
Cancel = True
MsgBox "Please revise the contract term. The ending date on your subform is
greater than the main contract's date."
End If
End Sub
Why isn't it triggering the msgbox when the subform's ending date is
1/14/2006 and the main form's ending date is 12/31/2005? Note: the
CalcEndDate is a function that calculates the contract's ending date.
Thank you,
gg
comparing the calculated ending dates as follows:
Private Sub contract_end_date_BeforeUpdate(Cancel As Integer)
If Me.CalcEndDate([Me.Term_type], [me.Term_mos], [me.Acceptance_date]) >=
[Forms]![frmEffective_contract]![Contract_end_date] Then
Cancel = True
MsgBox "Please revise the contract term. The ending date on your subform is
greater than the main contract's date."
End If
End Sub
Why isn't it triggering the msgbox when the subform's ending date is
1/14/2006 and the main form's ending date is 12/31/2005? Note: the
CalcEndDate is a function that calculates the contract's ending date.
Thank you,
gg