473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password with TransferDatabas e

Hello,

i want to transfer a table from database sourceMDB to a password
protected database named destMDB. I was not able to figure out where to
specify the required password ind the parameters of TransferDatabas e.
Can anyone help?

Thanks,

Jens

Nov 13 '05 #1
1 12491
Here is an example where I am doing that while creating a new database file.

Set wrkDefault = DBEngine.Worksp aces(0)
Set dbsNew = wrkDefault.Crea teDatabase("A:\ MyDatabase.mdb" , _
dbLangGeneral & ";pwd=password" , dbVersion30)
'Export the needed tables and queries
DoCmd.TransferD atabase acExport, "Microsoft Access", "" & dbsNew.Name & "",
acTable, "D10db", "D10db", , True
DoCmd.TransferD atabase acExport, "Microsoft Access", "" & dbsNew.Name & "",
acTable, "tblTeam", "tblTeam", , True
'etc

You can probably do the same thing using OpenDatabase instead of
CreateDatabase to transfer the object to an existing database.

--
Wayne Morgan
Microsoft Access MVP
"Jens Hofmeier" <ho***@hotmail. com> wrote in message
news:c8******** ***@ulysses.new s.tiscali.de...
Hello,

i want to transfer a table from database sourceMDB to a password
protected database named destMDB. I was not able to figure out where to
specify the required password ind the parameters of TransferDatabas e.
Can anyone help?

Thanks,

Jens

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1359
by: lila | last post by:
I have 'Password to view project properties' in MSAccess 2000, and try to use action in another database -> 'DoCmd.TransferDatabase acExport, "Microsoft Access", P, acModule,…..' but I receive the following error : 'Run-time error 2017 …This Visual basic for Applications Project has been protected with a password.You must supply the password in the Visual basic Editor before you can perform this operation' I know the psw. but, where and...
1
6954
by: Danny J. Lesandrini | last post by:
Does anyone know if it's possible to use TransferDatabase to export data to MySQL? If not, how would one go about it? Below is the code I tried to use, but it doesn't work. sTable = "tblLead" sODBC = "ODBC;Driver={MySQL ODBC 3.51 Driver};" & _ "SERVER=localhost;UID=root;PASSWORD=xxxxx;DATABASE=opc" sODBC = "ODBC;DSN=OPC;UID=root;PWD=xxxxx;DSN=dsn1" DoCmd.TransferDatabase acExport, "ODBC Databases", sODBC, acTable, sTable, sTable
0
1371
by: astro | last post by:
I'm trying to copy some ODBC linked tables from one access2k mdb to another. This is an example of the code i'm using: DoCmd.TransferDatabase acExport, "Microsoft Access", (strPath & strTemp), acTable, "woCost", "woCost", False, True I do not have to provide login information when I open the link in my 'home' mdb file (I've used the 'save password' check when I originally setup the link).
0
2395
by: ericellsworth | last post by:
Hi all, I'm wondering if there's a way to remove the password Access (2003) has stored for an ODBC linked table without quitting and reopening the application. I have a set of linked tables which I update with a user's password on login using tdf.Connect, thereby keeping them from having to use the linked table manager or see the ODBC connection dialog. When a user logs out, I set the connect string back to a generic connect string...
4
2678
by: Geir Baardsen | last post by:
Hi! 1. I wonder if there is a possibility to open a BackEnd.Db from the opening form, the form e.g.: frmOrders, in the FrontEnd.Db, when the BackEnd.Db is password protected? 2. Do I need to do this with all forms, or can I somehow have a refreshing links function that at the same time pass the password to the linked tables in the BackEnd.Db? The password is set only for opening the database itself, no grouping
5
2416
by: campbellbrian2001 | last post by:
Thanks in advance, I am automating copying tables from one database to another. Everything works fine except on the tables I want only the structure I put the word "True" (to transfer only the structure) instead of "False". The code runs, tables appear perfectly, except I still get tables with data when I type "True". Here's my syntax / code and it all works except the true has no effect: DoCmd.TransferDatabase acImport, "Microsoft...
0
1748
by: rdemyan | last post by:
I'm trying to use TransferDatabase to transfer tables from an external secured DB to a database created in the code. I would like to kind of use automation, although OpenCurrentDatabase apparantly can't be made to work with secured databases. I saw a post where someone from MS recommended GetObject. My code below has two problems. I keep getting an unspecified error on the GetObject line. So, I've temporarily used On Error Resume Next...
4
1715
MattFitzgerald
by: MattFitzgerald | last post by:
I am using the below code to import a table when the code run I get a pop up box asking me for the password for the database I am importing from. Is it possible to put the password into my code so I do not receive the password prompt? DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Documents and Settings\fitzgem4\Desktop\2008_2009 V5.mdb", acTable, "Tbl_VOL_References", "Tbl_VOL_References_StratfordData", False I have been...
3
3983
by: RachH | last post by:
I import tables from one Access 2003 database into another 1x/day (for various reasons, linking tables does not meet the need). The database I am importing from is password protected at the general level so I am asked for a password with each table I import. Is there a way to include the password in the import code? My VBA import code is as follows: DoCmd.TransferDatabase acImport, "Microsoft Access", _ "c:\Pdb.mdb", acTable, "Price",...
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.