-----Original Message-----
Tom,
No need for sorry, and you are not being a pain. You are making
appropriate use of a technical discussion forum
Ok, now I remember! There was a bug with the Replace function in the
original release of Access 2000, which means it only works correctly in
modules. I understand this bug is fixed in the Office 2000 service
release. If this is the cause of the problem, your choices are:
1. Download and install SR3 for Office 2000, after which Replace should
work as advertised.
2. Use the alternative method I suggested with the Instr () function.
3. Write a custom replacement function in a standard module, and use
this instead. This can be done like this...
Public Function MyReplace(Input As String, Search As String,
Replacement As String) As String
MyReplace = Replace(Input, Search, Replacement)
End Function
.... and then in your query, use like this...
NumericalValue: Val(MyReplace([YourTextField],".",""))
--
Steve Schapel, Microsoft Access MVP
No, I'm using Access 2000. I have tried the function
below but unfortunately I am getting a compilation error.
None of my figures will be over a million, only in the
thousands, so I shouldn't get the error you suggest
below. I don't know why I don't have Replace as a defined
function if it is standard on Access 2000. I'm really
sorry for being a pain about this!
Tom
.