473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Powerpoint from Access problem...any ideas?

I am trying to just create a simple Access form with buttons that will pop
up different powerpoint presentations but recieve an 'Invalid procedure call
or arguement' error when I try to run the ppt. Any ideas? Running both
Access and PPT 2000.

Here's the code I have:

Private Sub cmdTest_Click()
On Error GoTo Err_cmdTest_Click

Dim stAppName As String

stAppName = "C:\WINNT\Profiles\Desktop\AccessTest.ppt"
Call Shell(stAppName, 0)

Exit_cmdTest_Click:
Exit Sub

Err_cmdTest_Click:
MsgBox Err.Description
Resume Exit_cmdTest_Click

End Sub

Thanks in advance...
Matt

Nov 13 '05 #1
2 1880
You can't Shell to the file itself. You need to either include the full path
to the Powerpoint executable, or you could use ShellExecute (see
http://www.mvps.org/access/api/api0018.htm at "The Access Web" for code to
do this)

You may also be able to use Call Shell("Start " & Chr$(34) & stAppName &
Chr$(34), 0)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Wilson" <wi****@kingofprussia.com> wrote in message
news:WK******************@fe37.usenetserver.com...
I am trying to just create a simple Access form with buttons that will pop
up different powerpoint presentations but recieve an 'Invalid procedure call or arguement' error when I try to run the ppt. Any ideas? Running both
Access and PPT 2000.

Here's the code I have:

Private Sub cmdTest_Click()
On Error GoTo Err_cmdTest_Click

Dim stAppName As String

stAppName = "C:\WINNT\Profiles\Desktop\AccessTest.ppt"
Call Shell(stAppName, 0)

Exit_cmdTest_Click:
Exit Sub

Err_cmdTest_Click:
MsgBox Err.Description
Resume Exit_cmdTest_Click

End Sub

Thanks in advance...
Matt

Nov 13 '05 #2
I'll give it a try...thanks!

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:F%********************@twister01.bloor.is.net .cable.rogers.com...
You can't Shell to the file itself. You need to either include the full path to the Powerpoint executable, or you could use ShellExecute (see
http://www.mvps.org/access/api/api0018.htm at "The Access Web" for code to
do this)

You may also be able to use Call Shell("Start " & Chr$(34) & stAppName &
Chr$(34), 0)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Wilson" <wi****@kingofprussia.com> wrote in message
news:WK******************@fe37.usenetserver.com...
I am trying to just create a simple Access form with buttons that will pop up different powerpoint presentations but recieve an 'Invalid procedure

call
or arguement' error when I try to run the ppt. Any ideas? Running both
Access and PPT 2000.

Here's the code I have:

Private Sub cmdTest_Click()
On Error GoTo Err_cmdTest_Click

Dim stAppName As String

stAppName = "C:\WINNT\Profiles\Desktop\AccessTest.ppt"
Call Shell(stAppName, 0)

Exit_cmdTest_Click:
Exit Sub

Err_cmdTest_Click:
MsgBox Err.Description
Resume Exit_cmdTest_Click

End Sub

Thanks in advance...
Matt



Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: C Williams | last post by:
Hi, I am writing some VB.NET code that compiles to a dll. There is some code within it that manipulates Powerpoint 2003. The dll I am writing is for smart tags, and I am having trouble...
1
by: oskar hritz | last post by:
Is there any easy way how to use graphs created in MS Access 2000 in Powerpoint?Especially when I need to use about 20 of them. Is there any development in Office 2003? Oskar *** Sent via...
1
by: ellenh | last post by:
I have read postings on the similar subject including the posting from 2003 shown below. This process works fine to display a single page snapshot report in PowerPoint. I need to display...
0
by: psuaudi | last post by:
i have a powerpoint presentation that uses links to other files and are put on the slide using OLE. The problem is that I have different users updating the information on the slides, which is not...
8
by: =?Utf-8?B?R2VvcmdlQXRraW5z?= | last post by:
Greetings! I wrote a small Exe that simply runs Shell to load PowerPoint and launch a particular file, depending on the day of the week. However, it was set up for office 2003 (I naively hardcoded...
0
by: Rob | last post by:
Hey folks, my mind is turning into mush... I created a report tracking program in access that works beyond my greatest expectations. So of course, I am constantly adding features to make life...
6
by: BWPanda | last post by:
Hi everyone, I'm wanting to use VB.NET to display a powerpoint presentation, much the same way as the presenter that comes with PowerPoint (when used on multiple monitors). Basically, I want to...
3
by: vipergt023 | last post by:
Hi, Is there a way to dynamically generate a powerpoint file from scratch in C++ .NET? I'm running VS2008 and from what I've found supposedly Visual Tools for Office is already installed. The...
0
anoble1
by: anoble1 | last post by:
I am working on a project. I am running ms access. I am wanting to take my reports and export between 2-5 columns and put them in Powerpoint and make an automagic graph. So, I want to be able to hit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.