Launch Help File?

The Stoat

The Grim Squeaker
Local time
Today, 17:49
Joined
May 26, 2004
Messages
239
Hi,


Anyone know how to launch a help file with code? The files are *.hlp
I know how to use the forms "Help file" and "help context ID" properties but this is in conjuction with a tree view control that doesn't have that factility.

Thanks

TS
 
ghudson said:
Searching the forum is a great way to find the answers to your questions.

help files whys it so hard to open one!

adding a help (.chm) file to access application


Tried a search first but didn't use the right search string :o

tried again and found a post of yours and did this. Thanks

StrHelpfile = "C:\WINDOWS\system32\winhlp32.exe " & Mid(CurrentDb.NAME, 1, Len(CurrentDb.NAME) - 13) & "HELP\SKILLSBOXHELP.hlp"
Call Shell(StrHelpfile, vbNormalFocus)
 
There is a better way to grab the location of a db...

Getting the location to the current database using Access 2000/2002/2003...

'returns the database file name
CurrentProject.Name

'returns the database path
CurrentProject.Path

'returns the database path and the file name
CurrentProject.FullName

Getting the location to the current database using Access 97...

'returns the database file name
Dir(CurrentDb.Name)

'returns the database path
Left(CurrentDb.Name,Len(CurrentDb.Name)-Len(Dir(CurrentDb.Name)))

'returns the database path and the file name
CurrentDb.Name

'returns the directory that Access [msaccess.exe] is installed in
(SysCmd(acSysCmdAccessDir))

HTH
 

Users who are viewing this thread

Back
Top Bottom