D
Dan D
I am trying to use ADO with Access 2000 to acess data in the tables in the
same mdb database.
Here is what I had...
Set m_cn = New ADODB.Connection
m_cn.ConnectionString = CurrentProject.BaseConnectionString
m_cn.Open
I thought this would give the proper connection string and everything would
be fine. I guess it would work if it wasn't a secured database. Opening
the database requires a workgroup file and a username and password. Seeing
as I am already in the database is there anyway I can use ADO to connect to
the tables without having to worry about the connection strings and what
not. DAO makes it easy. ADO doesn't.
So if there is no way, how can I set the connection string to use the same
mdw workgroup file as the mdb the code is running from is using.
Again I find it silly I have to set all the connection properties seeing as
I am already inside the db I am trying to get ADO to connect to
Thanks,
Dan
same mdb database.
Here is what I had...
Set m_cn = New ADODB.Connection
m_cn.ConnectionString = CurrentProject.BaseConnectionString
m_cn.Open
I thought this would give the proper connection string and everything would
be fine. I guess it would work if it wasn't a secured database. Opening
the database requires a workgroup file and a username and password. Seeing
as I am already in the database is there anyway I can use ADO to connect to
the tables without having to worry about the connection strings and what
not. DAO makes it easy. ADO doesn't.
So if there is no way, how can I set the connection string to use the same
mdw workgroup file as the mdb the code is running from is using.
Again I find it silly I have to set all the connection properties seeing as
I am already inside the db I am trying to get ADO to connect to
Thanks,
Dan