I use the following code to start a second Access 2003 database, and tried to open an ADO recordset from it.
I got the following error.
3001, Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
If i create an ADO connection object and intitiate with the following code,
Then the code works. What did I do wrong in the first place?
Thanks in advance.
Seaport
Code:
Set appAcc = New Access.Application
appAcc.OpenCurrentDatabase strFileLocation
set rst=New ADODB.Recordset
rst.open "select * from Table1",appAcc.CurrentProject.Connection
3001, Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
If i create an ADO connection object and intitiate with the following code,
Code:
cnn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strFileLocation
set rst=New ADODB.Recordset
rst.open "select * from Table1",cnn
Thanks in advance.
Seaport