this is my problem...
i havea form, with 4 fields (there are more than 4 but that's beside the point). [Guide Type ID], [GuidDateReceived], [txtRetdBySol] and [TargetDate]
I am trying to populate [TargetDate] and have created the following expression, which doesn't work:
=IIf([txtRetdBySol] Is Null,[GuidDateReceived]+35,IIf([Guide Type ID]="DGMAm",[GuidDateReceived]+35,IIf([Guide Type ID]="DGMAm",[txtRetdBySol]+35,IIf([txtRetdBySol] Is Null,[GuidDateReceived]+14,IIf([Guide Type ID]="DMGM",[GuidDateReceived]+14,IIf([Guide Type ID]="DMGM",[txtRetdBySol]+14,IIf([txtRetdBySol] Is Null,[GuidDateReceived]+14,IIf([Guide Type ID]="SAOLET",[GuidDateReceived]+14,IIf([Guide Type ID]="SAOLET",[txtRetdBySol]+14)))))))))
...So, dependant on the value in [Guide Type ID], a number of days is added to [GuidDateReceived] to give a value in [TargetDate], UNLESS there's a value in [txtRetdBySol], in which case the days are added to this date to give [TargetDate].
it's not working, and i don't know what's going wrong.
help.
i havea form, with 4 fields (there are more than 4 but that's beside the point). [Guide Type ID], [GuidDateReceived], [txtRetdBySol] and [TargetDate]
I am trying to populate [TargetDate] and have created the following expression, which doesn't work:
=IIf([txtRetdBySol] Is Null,[GuidDateReceived]+35,IIf([Guide Type ID]="DGMAm",[GuidDateReceived]+35,IIf([Guide Type ID]="DGMAm",[txtRetdBySol]+35,IIf([txtRetdBySol] Is Null,[GuidDateReceived]+14,IIf([Guide Type ID]="DMGM",[GuidDateReceived]+14,IIf([Guide Type ID]="DMGM",[txtRetdBySol]+14,IIf([txtRetdBySol] Is Null,[GuidDateReceived]+14,IIf([Guide Type ID]="SAOLET",[GuidDateReceived]+14,IIf([Guide Type ID]="SAOLET",[txtRetdBySol]+14)))))))))
...So, dependant on the value in [Guide Type ID], a number of days is added to [GuidDateReceived] to give a value in [TargetDate], UNLESS there's a value in [txtRetdBySol], in which case the days are added to this date to give [TargetDate].
it's not working, and i don't know what's going wrong.
help.