K
KV
I have a text field with values such as 12.33% as well as
the value A/M. I want to create a number field using the
information in this field. In other words, when there is
a A/M value in the text field, I want it to be translated
into the number 0.00 for the number field. If it is a
value such as 12.33% then I would like it to be
translated into the number 12.33 for the number field.
This only really needs to be done for new entries into
the database. I tried to solve this problem using the
following expression as a default value. This did not
seem to work. Will this type of expression not work as a
default? If not, how else could I solve this problem?
=IIf(
![TEXT_FIELD]="A/M","0",Val(
!
[TEXT_FIELD]))
....and then I have the control source as [NUMBER_FIELD]
Thank you for your help.
Sincerely,
KV
the value A/M. I want to create a number field using the
information in this field. In other words, when there is
a A/M value in the text field, I want it to be translated
into the number 0.00 for the number field. If it is a
value such as 12.33% then I would like it to be
translated into the number 12.33 for the number field.
This only really needs to be done for new entries into
the database. I tried to solve this problem using the
following expression as a default value. This did not
seem to work. Will this type of expression not work as a
default? If not, how else could I solve this problem?
=IIf(
[TEXT_FIELD]))
....and then I have the control source as [NUMBER_FIELD]
Thank you for your help.
Sincerely,
KV