Hi,
I have a query and one of the fields in this query is as such:
Total: [PURPRI]*[ORDQTY]-[DISCNT]
The data type for the field [DISCNT] is a string (even though the field contains a number). For 10 out of the few thousand records, someone has entered in multiple spaces (ie: " ") in the fields. I don't know why they would do that, but it produces an error and when I export into excel, it exports it out without a total for those records. Is there a way I can tell Access to not subtract anything if [DISCNT] is not a number?
Thanks in advance,
Raza
I have a query and one of the fields in this query is as such:
Total: [PURPRI]*[ORDQTY]-[DISCNT]
The data type for the field [DISCNT] is a string (even though the field contains a number). For 10 out of the few thousand records, someone has entered in multiple spaces (ie: " ") in the fields. I don't know why they would do that, but it produces an error and when I export into excel, it exports it out without a total for those records. Is there a way I can tell Access to not subtract anything if [DISCNT] is not a number?
Thanks in advance,
Raza
Comment