Lightlancer
Programmer
Hi there,
Im trying to calculate the warranty,
in a form, (onload event) it must check if the warranty is still on,
Datediff must calculate the differce between [aanschafdatum] + 12 Months
if the buy date is more then 12 months ago, the checkbox must be False,
When its in the 12 months, it must be True
I tried the following code must it doesnt seem to work:
this code must tell: if the date between now and [aanschafdatum] is more then ?? Months (wich is stated in [Garantietijd] mostly its 12) Then, Me.Garantie = False
Otherwise its true offcourse,
But, the checkbox stays always on true,......
Any ideas??
Im trying to calculate the warranty,
in a form, (onload event) it must check if the warranty is still on,
Datediff must calculate the differce between [aanschafdatum] + 12 Months
if the buy date is more then 12 months ago, the checkbox must be False,
When its in the 12 months, it must be True
I tried the following code must it doesnt seem to work:
Code:
If DateDiff("m", Now(), [aanschafdatum]) > [Garantietijd] = True Then
Me.Garantie = False
Else
Me.Garantie = True
Otherwise its true offcourse,
But, the checkbox stays always on true,......
Any ideas??