Open a Form in MS Access from Power Point

R

Richard Troy

Help!

I have used the following VBA code to open MyDatabase.mdb from a button on
my PP Presentation which has the advantage of not exiting the presentation
to use database illustrations.

Private Sub ViewDatabase_Click()
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\Office\MSACCESS.exe
C:\MyDatabase.mdb"
Call Shell(stAppName, 1)
End Sub

However, I would prefer to directly open a form (MyForm) within the database
from the said button.
Can anybody suggest the code I need to add ?

Would appreciate help.

Dick Troy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top