Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Connect two .MDB files, but one has Security.mdw file applied to it

Posted on 2009-04-14
9
Medium Priority
?
235 Views
Last Modified: 2012-05-06
I have two local DBs, one is blank and the other has test data within it.  The blank database has no security applied to it, but the Testing DB has a security.mdw file applied to it.  I have full access to the security settings and know all the passwords so i can edit the security settings without any issues.

My trouble is when I try linking the test MDB file to the blank MDB file.  I keep getting a permissions issue.  I am not sure what the file is authenticating the connection as since I never get prompted for a userID/password during the linking process.  I tried adding my domain userID to the security of the Test MDB but that did not work.  Any suggestions would be great.

+++I attached a screen shot of the error meesage+++
Permissions-Error.jpg
0
Comment
Question by:szadroga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 10

Expert Comment

by:Michael Vasilevsky
ID: 24141854
How are you linking?
0
 

Author Comment

by:szadroga
ID: 24141888
I opened the blank DB and chose Linked Tables...this gave me the option to Browse for the other MDB file which i can locate.  When I try to open the other .MDB file i get the permission error message because that DB has the MDW file applied to it.  Isnt there a way to hard code a connection string with a username and password.  I have a valid username/password to connect into it, but i never get prompted for it when trying to link using the Linked Tables...
0
 
LVL 10

Expert Comment

by:Michael Vasilevsky
ID: 24142025
Then you'll probably want to use something like the code here:

http://www.mvps.org/access/tables/tbl0010.htm

Your connection string will look something like:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Desktop\...;User Id=Username;Password=Password;"

The Linked Table manager, Link Table function, and Import objects function will not allow you to pass a username and password. Alternatively you could join the Testing DB mdw workgroup with your blank database as well.
HTH,

MV
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:szadroga
ID: 24144122
Can you further explain the process of joining the Testing DB mdw workgroup with my blank DB?
0
 

Author Comment

by:szadroga
ID: 24144134
Also if i were to code the string, where would i enter the code.  I guess i would create a new module...Would the function be something similar to database open()?
0
 
LVL 10

Expert Comment

by:Michael Vasilevsky
ID: 24144496
the mvps.org site tells how to do it. The string goes in the ConnectString field of a new table callled tblReconnectODBC . Then call the function fReconnectODBC on the startup form OnOpen event. There is no Database OnOpen event as far as I know.
Let me know if you need any other details!
Best,

MV
0
 

Author Comment

by:szadroga
ID: 24147556
So i have to create a new Startup form in order to be able to place the code within the OnOpen event?
0
 
LVL 10

Accepted Solution

by:
Michael Vasilevsky earned 2000 total points
ID: 24150039
Yeah you could also call the function in an AutoExec macro, see here:

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_23081084.html
0
 

Author Comment

by:szadroga
ID: 24150218
ok, i think i am on the right track.  I really appreciate all the help, i will award the points.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question