Question : Undefined function 'TRIM' in Expression

I'm using the following update query:

UPDATE [Company and principal] SET prin2_social_security_number = TRIM([prin2_social_security_number]);


This statement runs and works fine in 1 database I work with, however, in another, I get the following error message:

Undefined function 'TRIM' in Expression

Anyone know why?

Thanks in advance!

Answer : Undefined function 'TRIM' in Expression

This would usually be caused by a missing/broken reference.  

Open any code module, then Select Tools, References.

The broken/missing module will be prefixed with...  Missing:

Often times it just can't find the file or it may actually not exist.  Highlight the broken link and click brose and identify the location of the file it is searching for.  As an alternative you could also uncheck the link but this will only work if the component has never been used in your code.

Rick
Random Solutions  
 
programming4us programming4us