G
Guest
How can I call a user defined function from a SQL statement? I need
something like this in my VB code:
strSQL = "SELECT NAME, udf(ADDRESS) " & _
"FROM TABLE1" & _
"WHERE whatever = whatever"
blah, blah, blah.
The udf is my function and ADDRESS from my table is what I'm trying to pass
to it. If I take the udf(ADDRESS) out of the double-quotes, VBA seems to
recognize it, but I need it to really be part of the result of my SQL
statement. Thank you so much!
something like this in my VB code:
strSQL = "SELECT NAME, udf(ADDRESS) " & _
"FROM TABLE1" & _
"WHERE whatever = whatever"
blah, blah, blah.
The udf is my function and ADDRESS from my table is what I'm trying to pass
to it. If I take the udf(ADDRESS) out of the double-quotes, VBA seems to
recognize it, but I need it to really be part of the result of my SQL
statement. Thank you so much!