open access app from within another access app

erodjob

Active Member
Joined
Feb 11, 2003
Messages
253
Using access 97 and windows xp. I have a command button that on double click, I want it to open another database. However, I get error message
" Microsoft Access can't invoke the application using RunnApp action."

This is the code I'm using"

Private Sub CorpInvestment_DblClick(Cancel As Integer)

Dim stAppname As String

stAppname = "MSACCESS.EXE \\pershing.com\root\shared\NJ\BONDS\Contacts\Corp-Investment.mdb"

Call Shell(stAppname, 1)

End Sub


any suggestion
 
In form design just go to Insert>Hyperlink.

Or on certain controls there is a property Hyperlink Address, or something like that.

Using first method will give you a lable hyperlink.

The second method could be used on a command button.
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,221,713
Messages
6,161,463
Members
451,708
Latest member
PedroMoss2268

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top