link databases

G

Guest

I have 4 separate databases that I would like users to access via one menu.
Can I create one main manue and when the user clicks on the button, chosen
database opens up?
 
G

Guest

For an example of opening other databases from a button on a "main menu,"
please see the following Web page for a link to Jeff Conrad's (Access MVP)
article, "Creating A Customized Login Screen For A Secured Database":

http://www.Access.QBuilt.com/html/articles.html

If you aren't using secured database files, then replace this line of code:

strPath = Chr(34) & strAccPath & Chr(34) & " " _
& Chr(34) & "<Full Path To Database File Here>" & Chr(34) & " " _
& "/wrkgrp " & Chr(34) & "<Full Path To MDW File Here>" & Chr(34) & " " _
& "/User " & Chr(34) & Me.txtUserName & Chr(34) & " " _
& "/Pwd " & Chr(34) & Me.txtPassword & Chr(34)

.. . . with this code:

strPath = Chr(34) & strAccPath & Chr(34) & " " _
& Chr(34) & "<Full Path To Database File Here>" & Chr(34)

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
G

Guest

Just to be stupid, but if they are not secured dbs couldn't you use the
DBEngine.OpenDatabase in code and then run a macro to say RunCode and the
name of this function? The way that is posted is interesting though - never
tried it.
 
6

'69 Camaro

Yes. One could do that even with a secured database. Or one could just
activate the function by pressing the button -- without calling a macro. Or
there are a number of other simple ways to open another database
application.

However, a picture is worth a thousand words and seeing a working demo is
worth at least several thousand more.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top