I have a table in access that holds data on vehicle there are 3 fields holding dates on MOT, Tax and Insurance renewal I am looking for 3 different messages on opening if date of any is within next 2 weeks e.g.
now i have tried various variations of this but all messages appear at all times regardless of dates any help greatly apprecipated Thanks in advance
Code:
If DateDiff("d", Me.MOT_Renewal_Date, Now()) < 15 Then MsgBox "Vehicles Due MOT Renewal", , "Renewal Due" If DateDiff("d", Me.Tax_Renewal_Date, Now()) < 15 Then MsgBox "Vehicles Due Tax Renewal", , "Renewal Due" If DateDiff("d", Me.Insurance_Renewal_Date, Now()) < 15 Then MsgBox "Vehicles Due Insurance Renewal", , "Renewal Due" End If
Comment