Undefined function 'replace' in expression

  • Thread starter Thread starter vidas
  • Start date Start date
V

vidas

Hi,

Problem only and only with access 2000 in computer at home.
My work computer ok. On both computers WIN-XP.
Office 2000 from the same CD.

SELECT left("AB",1) - ok.
SELECT replace("AB","A","X") - Undefined function 'replace' in
expression.
REPLACE in imediate window is working ok.

Module UsysVB (imported from ACCESS97):
#If VBA6 Then
#Else
Function replace(txt As String, old As String, neww As String) As String
.....
#end if

:(
 
Back
Top