NJLDoc
Programmer
- Jan 25, 2002
- 93
Is there anyway to create a recordset object based on two separate yet password protected access databases.
Not syntactically correct obviously but this is what I want to accomplish.
Select FieldA, FieldB From tblOne in database One and then select FieldC, FieldD From tblTwo in database Two into a single recordset I can interrogate.
The idea I have tried unsuccessfully was
With rsCombined
For Each fld In rsOne.Fields
.Fields.Append fld.Name, fld.Type, fld.DefinedSize, adFldIsNullable, fld
.Update
Next fld
For Each fld In rsTwo.Fields
.Fields.Append fld.Name, fld.Type, fld.DefinedSize, adFldIsNullable, fld
.Update
Next fld
End With
I am using ADO 2.7 and MSAccess 97
Any help would be greatly appreciated.
Not syntactically correct obviously but this is what I want to accomplish.
Select FieldA, FieldB From tblOne in database One and then select FieldC, FieldD From tblTwo in database Two into a single recordset I can interrogate.
The idea I have tried unsuccessfully was
With rsCombined
For Each fld In rsOne.Fields
.Fields.Append fld.Name, fld.Type, fld.DefinedSize, adFldIsNullable, fld
.Update
Next fld
For Each fld In rsTwo.Fields
.Fields.Append fld.Name, fld.Type, fld.DefinedSize, adFldIsNullable, fld
.Update
Next fld
End With
I am using ADO 2.7 and MSAccess 97
Any help would be greatly appreciated.