J
Jonathan Brown
I've placed an unbound textbox on a form that I want to display an expected
expiration date for a security clearance based on the type of clearance that
it is and when the original clearance was granted. So basically I want it to
do the following: If it's a secret clearance, then I want it to take the date
the clearance was granted and calculate the expiration date 10 years into the
future. If it's a Top Secret clearance then calculate the expiration date 5
years into the future.
I tried the following code and it didn't seem to work.
if me.clearancetype = 1 then
me.expirationdate = me.granteddate + 3650
elseif me.clearancetype = 2 then
me.expirationdate = me.granteddate + 1825
end if
The text box is just a text box. i don' t know how to get it to display a
date.
expiration date for a security clearance based on the type of clearance that
it is and when the original clearance was granted. So basically I want it to
do the following: If it's a secret clearance, then I want it to take the date
the clearance was granted and calculate the expiration date 10 years into the
future. If it's a Top Secret clearance then calculate the expiration date 5
years into the future.
I tried the following code and it didn't seem to work.
if me.clearancetype = 1 then
me.expirationdate = me.granteddate + 3650
elseif me.clearancetype = 2 then
me.expirationdate = me.granteddate + 1825
end if
The text box is just a text box. i don' t know how to get it to display a
date.