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
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Is there maybe some code that runs on open in the database you are trying to open?
 
Upvote 0
No.

A friend of mine tried the same code on windows NT, he had no problem. I have XP SP1.
 
Upvote 0
I tried it as well on NT and it worked.

Could it be a problem with the path?
 
Upvote 0
What configuration do you have?

I changed it to the C drive and still no good. I do not think it's the path.

Thanks
 
Upvote 0
Try creating a new blank database, with one form, one command button and your code.

If it works then it may be something wrong with the original database.

PS

Are you just opening it to get data?
 
Upvote 0
Not that I know of.

Did you try my suggestion to test if their was a problem with the original database?

Try creating a new blank database, with one form, one command button and your code.
 
Upvote 0
I will try your suggestion if the hyperlink does not work.

How do you do a hyperlink?

Thanks
 
Upvote 0

Forum statistics

Threads
1,221,714
Messages
6,161,467
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