I
IgorM
Hi
I have a query that retreives data from a cartain column and converts it to
currency type.
The query in Access 2007 looked like this:
Select CCur([Revenues]![Wn-1]) FROM RevenuesCurrentYear
When I saved it in .mdb format and opened it Access 2003 errors occurred
because values grater than 1000 contained a white space. So I changed the
query to:
Select CCur(Replace([Revenues]![Wn-1],Chr(160),'')) FROM RevenuesCurrentYear
After that it worked just fine. But then I wanted to connect to this query
from Excel 2003. Unfortunatelly I get an error message 'Undefined function
Replace in expression'.
I tried to workaround this issue using custom function:
Function RemoveWhiteSpaces(StringIn As String) As String
Dim NewString As String
NewString = Replace(StringIn, Chr(160), "")
RemoveWhiteSpaces = NewString
End Function
Unfortunatelly I get the same message. How can I resolve this issue?
I will just add that I have all latest updates installed.
Kind regards
IgorM
I have a query that retreives data from a cartain column and converts it to
currency type.
The query in Access 2007 looked like this:
Select CCur([Revenues]![Wn-1]) FROM RevenuesCurrentYear
When I saved it in .mdb format and opened it Access 2003 errors occurred
because values grater than 1000 contained a white space. So I changed the
query to:
Select CCur(Replace([Revenues]![Wn-1],Chr(160),'')) FROM RevenuesCurrentYear
After that it worked just fine. But then I wanted to connect to this query
from Excel 2003. Unfortunatelly I get an error message 'Undefined function
Replace in expression'.
I tried to workaround this issue using custom function:
Function RemoveWhiteSpaces(StringIn As String) As String
Dim NewString As String
NewString = Replace(StringIn, Chr(160), "")
RemoveWhiteSpaces = NewString
End Function
Unfortunatelly I get the same message. How can I resolve this issue?
I will just add that I have all latest updates installed.
Kind regards
IgorM