Hi
I have written a function in a module for access that returns a string value. Now when i call the function from a query written in ACCESS query editor then it works and executes perfectly. But when i pass the same SQLStatement from my VB project it gives me that the function is not defined.
I have query like this
Select EventID, GetStudentList(EventID) from Event;
here GetStudentList() function is written in VBA module. And this query runs fine in Access. But when i try to execute this query from my VB project then it gives me undefined Function
i.e VB Code
MyConnection.Execute "Select EventID,GetStudentList(EventID)
from Event"
It gives error
Can any body tell me how i can do this.
Thanks in advance
I have written a function in a module for access that returns a string value. Now when i call the function from a query written in ACCESS query editor then it works and executes perfectly. But when i pass the same SQLStatement from my VB project it gives me that the function is not defined.
I have query like this
Select EventID, GetStudentList(EventID) from Event;
here GetStudentList() function is written in VBA module. And this query runs fine in Access. But when i try to execute this query from my VB project then it gives me undefined Function
i.e VB Code
MyConnection.Execute "Select EventID,GetStudentList(EventID)
from Event"
It gives error
Can any body tell me how i can do this.
Thanks in advance