in my form i have 2 bound fields OrderDate (Date Field) , and the reserved days (Integer field). now i want to make an unbound field where i can perform the check and show the remaining reserved days , comparing with the current date and reserved days. here is the example for better understanding.
suppose i have Add this record on 19-Mar-03
Orderdate : 19-Mar-03 (bound field)
Reserved days: 12 (bound field)
Remaining Reserved Days: 12 (Calculated unbound field)
if i open this record on 19-Mar-03 then the data on form should look like this.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 12
If i open this record on 20-Mar-03 then the data on form should like this.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 11
and if i open this record on 02-Apr-03 then the data on form should look like.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 0
and the remaining reserved days field will remain 0 if the current date cross the reserved days.
i have tried setting the default value equal to ,
=Days-[OrderDate]-[Remaining Reseved Days]
but i guess that it's not a good approach.
Please advise me how can i perform check like this..
Thanks in advance.
suppose i have Add this record on 19-Mar-03
Orderdate : 19-Mar-03 (bound field)
Reserved days: 12 (bound field)
Remaining Reserved Days: 12 (Calculated unbound field)
if i open this record on 19-Mar-03 then the data on form should look like this.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 12
If i open this record on 20-Mar-03 then the data on form should like this.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 11
and if i open this record on 02-Apr-03 then the data on form should look like.
Orderdate : 19-Mar-03
Reserved days: 12
Remaining Reserved Days: 0
and the remaining reserved days field will remain 0 if the current date cross the reserved days.
i have tried setting the default value equal to ,
=Days-[OrderDate]-[Remaining Reseved Days]
but i guess that it's not a good approach.
Please advise me how can i perform check like this..
Thanks in advance.