Hi
I have 2 columns
A- Price
B- Shipping
ColumnB can also have the value of "Free" which can't be added.
How can I write the total Column to query the total for columnA and B and to treat "Free" like a 0?
Hi
I have 2 columns
A- Price
B- Shipping
ColumnB can also have the value of "Free" which can't be added.
How can I write the total Column to query the total for columnA and B and to treat "Free" like a 0?
For one thing, you can use the IsNumeric function. http://www.techonthenet.com/access/f.../isnumeric.php
If either field can be nulls, then you might want to use NZ as well.
Mixing data types in one field is problematic. Why do this? Make it a number field. Enter 0 (can be default) or leave it Null.
To calculate a Total column:
[Price] + IIf([Shipping]="Free", 0, [Shipping])
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.