Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an access database file with Table1 and would like to copy its rows to another database file with table TempTable1.

 

With the statement below, I can run it without any problem.

 

Insert Into TempTable1 (TempField1)

Select Field1 From Table1

In 'c:\database.mdb'

 

BUT if I set a password for database.mdb, then error occurs

 

Not a valid password.

 

Anybody know how to solve it?

Posted
BUT if I set a password for database.mdb, then error occurs

 

Not a valid password.

My guess is that you're using the same connection and that it isn't valid if the other database is password protected.

Make a new connection to the other database and try to do the insert again.

 

HTH

/Kejpa

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...