Hi,here a sample for you.Assuming you have a table row with 7 columns,
where each is named "Day".The first six columns are text fields and the
last is the date field you select the date for sundays.Put this script
(FormCalc) into the date fields exit event.if (not $.isNull) then var d
= Date2Num($.formattedValue, "MM/DD/YYYY") if (Num2Date(d, "E") eq 1)
then for i = 0 upto 5 do Day[i] = Num2Date(d - (6 - i), "MM/DD/YYYY")
endfor else $host.messageBox("Selected Date is not a Sunday", "Wrong Day
o...