S
stevenmcgraw via AccessMonster.com
Good evening all,
I am currently a novice at access but have high hopes of becomeing much
better. As it stands I have a problem that I need some expertice in. I have
a database built with dates built in that we input manualy using a form and
such. Needless to say I am trying to learn how to do a calculation with in
an update query that will read a code either 5, 6, or 7 in one column from my
table that would effect whether it will add 5 years or 10 years to the date
from another column in my table then update the calculated date into a blank
field for each record. The calculation i have attempted to use but failed
misserably at is :
IIf(([Permanent Party Personnel]![SAR Code]="5"),DateAdd("d",1826.5,
[Permanent Party Personnel]![Invest Date]),DateAdd("d",3652.5,[Permanent
Party Personnel]![Invest Date]))
Any feedback would be most helpfull.
Thanks in advance,
I am currently a novice at access but have high hopes of becomeing much
better. As it stands I have a problem that I need some expertice in. I have
a database built with dates built in that we input manualy using a form and
such. Needless to say I am trying to learn how to do a calculation with in
an update query that will read a code either 5, 6, or 7 in one column from my
table that would effect whether it will add 5 years or 10 years to the date
from another column in my table then update the calculated date into a blank
field for each record. The calculation i have attempted to use but failed
misserably at is :
IIf(([Permanent Party Personnel]![SAR Code]="5"),DateAdd("d",1826.5,
[Permanent Party Personnel]![Invest Date]),DateAdd("d",3652.5,[Permanent
Party Personnel]![Invest Date]))
Any feedback would be most helpfull.
Thanks in advance,