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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Switchboard for other mdb 1

Status
Not open for further replies.

RezaNana

Programmer
Dec 18, 2002
80
MY
The situation is like this.I have multiple mdb,which i named it (e.g) ledger.mdb,Courseware.mdb,Asstes.mdb. What i am trying to do is, i would like to control this three mdb's in one single switchboard without having to shar all the tables,forms and etc in one apllication. To be more clear, let say i created an application call, Switch.mdb,which contains a button for ledger.mdb,courseware.mdb,assets.mdb , and by starting the switch.mdb,i can click any buttons to start either three mdb.Do you get what i mean?PLease help
 
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click

Dim stAppName As String

stAppName = "ledger.mdb"
Call Shell(stAppName, 1)

Exit_Command0_Click:
Exit Sub

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click

End Sub


Hope this helps
 
If that doesn't work, try:

Private Sub Command0_Click()
On Error GoTo Err_Command0_Click

Dim stAppName As String

stAppName = "C:\Program Files\Microsoft Office\Office10\msaccess.exe ""C:\Documents and Settings\YourUserName\My Documents\db2.mdb"""

Call Shell(stAppName, 1)

Exit_Command0_Click:
Exit Sub

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
 
No can't do..
it displayed the "File not found" even if the correct path
 
Then you have a non-Access problem.

Is the db on a LAN?

If so, are you sure that you are actually connected to the drive that contains the db?

 
actually its in my local computer.Anyway thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top