Hi - I have a subform which stores 2 bound fields and 2 that are populated via an iif statement based on the 2 results from the bound fields.
What I'm trying to do logically sound quite easy - Getting access to do it is another thing.
Bound field 1 = [date1]
Bound field 2 = [course length] ie 5 as in 5 (yrs) or 1825 days from [date1]
unbound field 1 then looks at the [date1] and adds 5 (yrs) and becomes [expiry date] eg. [date1]+ 1825=5 yrs eg. [01/01/10] --> [01/01/15]
I know this is probably not the best way to do this but it works for me.
The problem comes when I then try to get another unbound field to then show an indate or expired date based on now().
This is what it looks like from above!
textbox placed on a form and within the textbox as the control source I have
=IIf([unbound]>Date(),"Live","Expired")
I can't understand - some of the fields work but some don't. There's about 20 different course dates within the form which I have list as a datasheet rather than a form. from the 20 only 2 picks up the result correctly?
Any ideas?
In advance Thanks
What I'm trying to do logically sound quite easy - Getting access to do it is another thing.
Bound field 1 = [date1]
Bound field 2 = [course length] ie 5 as in 5 (yrs) or 1825 days from [date1]
unbound field 1 then looks at the [date1] and adds 5 (yrs) and becomes [expiry date] eg. [date1]+ 1825=5 yrs eg. [01/01/10] --> [01/01/15]
I know this is probably not the best way to do this but it works for me.
The problem comes when I then try to get another unbound field to then show an indate or expired date based on now().
This is what it looks like from above!
textbox placed on a form and within the textbox as the control source I have
=IIf([unbound]>Date(),"Live","Expired")
I can't understand - some of the fields work but some don't. There's about 20 different course dates within the form which I have list as a datasheet rather than a form. from the 20 only 2 picks up the result correctly?
Any ideas?
In advance Thanks
Last edited: