H
h2fcell
Hello,
Using Access 2007, I’m trying to create a query that converts a field coming
from an Excel file link into a number. The Excel field contains Text in the
following form.
$ 1,394.45
$ 455.00
$ 23,080.00
There is a space between the $ and the first digit.
I would like the query to change them to numbers like:
1394.45
455
23080
I have the following but it fails when it reaches a number with a comma.
Expr3: Val(IIf(Len([Total Sale])>0,Right([Total Sale],(Len([Total
Sale])-2))," "))
I guess I really asking how do I strip $ and , from a Text field?
or
Is there an easier way?
Thanks
Using Access 2007, I’m trying to create a query that converts a field coming
from an Excel file link into a number. The Excel field contains Text in the
following form.
$ 1,394.45
$ 455.00
$ 23,080.00
There is a space between the $ and the first digit.
I would like the query to change them to numbers like:
1394.45
455
23080
I have the following but it fails when it reaches a number with a comma.
Expr3: Val(IIf(Len([Total Sale])>0,Right([Total Sale],(Len([Total
Sale])-2))," "))
I guess I really asking how do I strip $ and , from a Text field?
or
Is there an easier way?
Thanks