M
Mark1
I need to call a user-defined function from within a SQL statement in VBA. I
need it to go something like this, assuming my user-defined function is
called UDF :
strSQL = "SELECT NAME, UDF(ADDRESS)" & _
"FROM TABLE1 " & _
"WHERE.... "
If I take the UDF(ADDRESS) statement out of the double quotes, VBA seems to
recognize it, but I really need it to be part of the SELECT statement in my
strSQL. I get the error:
"Undefined Function" if I leave it in the double quotes.
Thanks!
need it to go something like this, assuming my user-defined function is
called UDF :
strSQL = "SELECT NAME, UDF(ADDRESS)" & _
"FROM TABLE1 " & _
"WHERE.... "
If I take the UDF(ADDRESS) statement out of the double quotes, VBA seems to
recognize it, but I really need it to be part of the SELECT statement in my
strSQL. I get the error:
"Undefined Function" if I leave it in the double quotes.
Thanks!