Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call UDF In Query
Message
General information
Forum:
Microsoft Office
Category:
Access
Environment versions
Microsoft Office:
Office 2007
Miscellaneous
Thread ID:
01425509
Message ID:
01425511
Views:
23
>I wrote a user defined function called CleanString:
>
>
>Public Function CleanString(String2Clean As String)
>
>    RetVal As String
>    
>    String2Clean = Replace(String2Clean, "'")
>    String2Clean = Replace(String2Clean, "(")
>    String2Clean = Replace(String2Clean, ")")
>    String2Clean = Replace(String2Clean, "$")
>    
>    CleanString = RetVal
>
>End Function
>
>
>I want to call it in a query I'm working on. So in the expression builder I tried:
>
>
>VN-PAID: CleanString([VEN_YTDPaidAmt])
>
>
>I get "Undefined function 'CleanString' in expression".
>
>How do I do this?

In SQL Server it would be dbo.CleanString([myField])
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform