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

start another access dbatabase from an access database 1

Status
Not open for further replies.

Panchovia

Programmer
May 6, 2010
48
CW
Hi I am trying to run an access database from another access database with the following code in ms access 2010

Private Sub Command21_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"" "" C:\Users\Rudolf\Desktop\Signinfo playitmovie,1")

End Sub
 
try
Code:
Dim appAccess As Access.Application
 appAccess.OpenCurrentDatabase "PathToDatabase"
 appAccess.Visible = -1
 
sorry should be
Code:
 Dim appAccess As Access.Application
 Set appAccess = CreateObject("Access.Application")
 appAccess.OpenCurrentDatabase "C:\Users\Pincus\Desktop\be.accdb"
 appAccess.Visible = -1
 
Hi PWise tried your code as follows without succes
Private Sub Command23_Click()
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "C:\Users\Rudolf\Desktop\Signinfo\playitmovie"
appAccess.Visible = -1

End Sub
 
Hi Pwise I forgot the extention accde
Private Sub Command23_Click()
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "C:\Users\Rudolf\Desktop\Signinfo\playitmovie.accde"
appAccess.Visible = -1

End Sub
It error message appAcess .Vissible wrong code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top