Rahul said:
I have a new problem now... I used Duane's idea to create a select query(a
view), named TitleAuthors, listing the authors of all titles in a semi-colon
separated format.
That worked just fine in Access, but when I tried to retrieve data from that
query using VB.NET 2005, it generated an exception, 'Could not find the
function Concatenate'.
What is the reason for that exception, & what's the solution?????
The reason is because a function in Access is not known in
other environments. When you run a query from any place
other than Access, you are using a data access library that
interfaces with the database engine, not with Access. A lot
of people think Access is the database engine when in
reality, it is a development tool for creating a data
centric application. The default database engine that comes
in the Access box is Jet (using either the DAO or ADO
library), but many people use other db engines such as MSDE,
SQL Server, Oracle. etc.
AFAIK, the only way Jet can deal with user defined functions
is when it it used from the Access environment. When you
come from another environment such as .NET, Jet has no way
to invoke UDFs.
The solution ro your problem is to create an equivalent
function that will work with your db engine and a compatible
data access library. I can't help you with that beyond
suggesting that you find a forum specific to your
development enviornment and ask your question there.