Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login Dialog Box

Status
Not open for further replies.

ugenya

Programmer
Nov 18, 2008
3
0
0
US
I don't know if this has ever been done before but I about have 5 different access databases that are used for data entry/reports. Each of these databases have a shortcut to user's desktop. All the databases are located in one dir. Now, what I would like to do is to create a single login dialog box with a combo box where the user can select a database when they need to to login to that database. But I don't know if this is possible. My searches have not yielded anything concrete.
Does anyone have an idea whether this is doable? Please help

Thank you so much!

Bibi
 

Haven't actually tried this, but...

1. Create an additional database that has 2 tables -- login data and database names.
2. Create a form with the combo box and login criteria.
3. If the user logs in properly, use the FollowHyperlink method to open the selected database.


Randy
 
See Randy for point 1 and 2, for point 3
maybe this is something usefull:

Code:
Private Sub Command0_Click()
Dim strAccessPath As String
Dim strDatabasePath As String


'Set Paths
strDatabasePath = "C:\TestDb.mdb"
strAccessPath = "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"

'Start Application and Load Database
Shell (strAccessPath & " " & strDatabasePath)

End Sub

Pampers [afro]
Keeping it simple can be complicated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top