G
Guest
I have a form with a subform. The main form finds a group of records and
allows the user to add a new price and effective date.
The subform finds corresponding PNs' prices without a price closing date and
closes the old price. At least that is the premise.
When completing the new price info the main form's last field sets focus to
the sub form's closing price field. Upon 'got focus', the closing date field
on the sub form = the effective date on the main form.
All would seem well....and does work unless there was no price to start
with. So, if the user is entering a price for the first time, the new price
that was just entered is the only price with a null value in the closing date
field. So, the sub-form closes the new price that was just entered.
I would like to put something like this in the sub form closing price
field....
Iif(form_main.price = me.price,null,form_main.EffectiveDate) But, I don't
know how to get the syntax right. Can anyone help me.
Thx.
allows the user to add a new price and effective date.
The subform finds corresponding PNs' prices without a price closing date and
closes the old price. At least that is the premise.
When completing the new price info the main form's last field sets focus to
the sub form's closing price field. Upon 'got focus', the closing date field
on the sub form = the effective date on the main form.
All would seem well....and does work unless there was no price to start
with. So, if the user is entering a price for the first time, the new price
that was just entered is the only price with a null value in the closing date
field. So, the sub-form closes the new price that was just entered.
I would like to put something like this in the sub form closing price
field....
Iif(form_main.price = me.price,null,form_main.EffectiveDate) But, I don't
know how to get the syntax right. Can anyone help me.
Thx.