VB to connect to 2 seperate Databases

I'm using vb 6 and trying to connect to two separate access 2000 databases.  My question is this:  When I make the connection and try to copy data from one table (in DB1) to another table(in DB2) I get an error.
The command I use for this copy is
table1.addnew
table1.fields("Field1") = table2.fields(Field1")
table1.update

This does not work.  The way that I can make it work is

table1.addnew
x = table2.fields("Field1)
table1.fields("Field1") = x
table1.update


My question is: Does visual basic not allow access to two separate databases on the same line of code?

Thanks in advance
LVL 1
jtjcompAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jtjcompAuthor Commented:
Edited text of question.
0
mmipsCommented:
Try adding .value to the table2.("Field1")...

table1.fields("Field1") = table2.fields("Field1").value
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HunterKillerCommented:
Try this:
"bd1.table1.fields("Field1") = bd2.table2.fields("Field1").value
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.