Hayley Baxter
12-18-2001, 02:51 AM
I am trying to calculate the datediff between a contract start date and contract end date. I entered the following criteria as a calulated field on my form and this works fine.
=DateDiff("m",[Contract Start Date][Contract End Date])
I entered this criteria to find the datediff between the current date and the contract end date but I get the #name? error.
=DateDiff("m",[Now()],[Contract End Date])
When a contracts running time is < = 3 months I want to display a msgbox when a supplier that meets this criteria is selected from my combobox. I entered the following code but Im not too good with vb so dont know if this will do the trick.
Private Sub Combo80_Click()
If Running_Time <= 3 Then
MsgBox "The contract is due to expire in ? months"
End If
End Sub
can anyone help?
Thanks
=DateDiff("m",[Contract Start Date][Contract End Date])
I entered this criteria to find the datediff between the current date and the contract end date but I get the #name? error.
=DateDiff("m",[Now()],[Contract End Date])
When a contracts running time is < = 3 months I want to display a msgbox when a supplier that meets this criteria is selected from my combobox. I entered the following code but Im not too good with vb so dont know if this will do the trick.
Private Sub Combo80_Click()
If Running_Time <= 3 Then
MsgBox "The contract is due to expire in ? months"
End If
End Sub
can anyone help?
Thanks