Dendalee,
this function returns the nearest Tuesday in 30 days.
=iif(weekday([fecha1]+30;3)<5;
[fecha1]+30+(1-weekday([fecha1]+30;3));
[fecha1]+30+(8-weekday([fecha1]+30;3)))
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10387
were Fecha1 is the date to calculate from.
or you may put this function in a module
Function Tuesday30(DateFrom As Date) As Date
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10387
Tuesday30 = DateFrom + 30
If Weekday(Tuesday30, 3) < 5 Then
Tuesday30 = Tuesday30 + (1 - Weekday(Tuesday30, 3))
Else
Tuesday30 = Tuesday30 + (8 - Weekday(Tuesday30, 4))
End If
End Function
and call as Tuesday30(Fecha1) from a query or a form.
Regards,
Valentín Playá
Sonotronic S.A.
Madrid, Spain