MS Access 2007 VB ?

Get help on databases - MySQL, Oracle, Access, etc.
Post Reply
Mclaren
Registered User
Posts: 497
Joined: 30 Apr 2007, 02:00
Location: c:\program files\temp
Contact:

MS Access 2007 VB ?

Post by Mclaren »

I am trying to open a *.hlp file from within MS Access 2007. I have already installed the update that allows me to view *.hlp files in Win7. I just need the code to allow me to open the file.

Current code
Private Sub cmd_Help_Click()
Shell ("C:\Program Files\Project\WTF.hlp")
End Sub
This code pops up the following :
Run-time error '5':
Invalid procedure call or argument
User avatar
Tribble
Registered User
Posts: 88456
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: MS Access 2007 VB ?

Post by Tribble »

No idea - but I will ask around for you
Image
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: MS Access 2007 VB ?

Post by doo_much »

I suck at programming but try it like this?

Code: Select all

Private Sub cmd_Help_Click()

Dim Whtever As Integer
   
Whtever = Shell("C:\Program Files\Project\WTF.hlp", AppWinStyle.NormalFocus)

End Sub
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
Mclaren
Registered User
Posts: 497
Joined: 30 Apr 2007, 02:00
Location: c:\program files\temp
Contact:

Re: MS Access 2007 VB ?

Post by Mclaren »

Nope, now i have
Runtime error 424
object required
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: MS Access 2007 VB ?

Post by doo_much »

Well I can only guess. Is the hlp file in the expected location?

Guess you'll have to stick around till the real programmers pitch? ;)
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
Post Reply