2

I have defined a Function in MS Access database. I am using that function in Query. I saved that query as "Query1". This query runs successfully in MS Access. But, when I call the same query from VB (using ADO), it is giving me error:

Run-time error '-2147217900 (80040e14)':

Undefined function 'Concatenate' in expression.

Below is the code I use to access "Query1":

rs.Open "Select * From Query1", CN1, 2, 2
If Not rs.EOF Then
'Get Data
End If
rs.Close
1
  • You haven't made clear whether your VB call is in Access still or another program, if still with Access then I suggest using DAO instead of ADO. Commented Feb 13, 2012 at 10:32

1 Answer 1

3

You cannot use user defined functions (UDFs) outside of Access.

Sign up to request clarification or add additional context in comments.

3 Comments

You can post the UDF if you want SO people to look at an alternative approach.
I am using Concatenate function to get comma separated string from one column of rows. Can this be done using normal ms access query?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.