Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Help Files 1

Status
Not open for further replies.

Lenvdb

Programmer
Jun 21, 2002
81
GB
Hiya All!
I created a Help file in HTML Help Editor. This produces a chm file which I am supposed to link to the Access application I wrote. I specify the path for the file in the properties of the main form I load and also in the Project Properties of the code pages. However, when the users press the F1 key it is the MS Access Help that pops up instead of my Helpfile. I also created a label and use the click event to try and open this file, but once again only the MS Access Help opens. How am I suppose to do this? Anyone got some ideas for me?

Rgds and Thanks
Len
 
Thanks Zameer
But there is an issue with Helpfiles.
In previous versions of MS Office Microsoft propagetd the use of .hlp files and the use of the WinHelp API. Then came the Microsoft HTML Help Authoring tool and we all migrated to the HTML Help which creates helpfiles as .chm files.

Looking at the samples in the path, they still all refer to the WinHelp API and using .hlp files rather than the .chm files as used in more recent systems.

I don't seem to be able to get MS Access to see that it should display my .chm file rather than the local Access Help file that ships with Access.

Thanks for trying anyway. I am still open to suggestions from anyone who has done this. I have used this feature with great success in VB6 and VB.net. Just not in MS Access 2K.
Len

 
I am having the same problem. I have solved it by "cheating" a bit:
I have created a "help.bat" batchfile which will open the help.chm.
Then I have created a help button and assigned this code to its Click() event:
Code:
On Error GoTo open_help_Err
    Call Shell("your path goes here\help.bat", 1)
open_help_Exit:
    Exit Sub
open_help_Err:
    MsgBox Error$
    Resume open_help_Exit

Not very elegant, but working.... ;-)
MakeItSo

Andreas Galambos
EDP / Technical Support Specialist
(andreas.galambos@bowneglobal.de)
HP:
 
Heya Andreas
This is probably the best way to go...
Thanks for your help. This is how I will do it too. Just one question: What did you put in the bat file?

Thanks clever man!

Len
 
Here Len:
Just
Code:
start
followed by the full path to the chm. In my case:
Code:
start X:\MKBase\Help\mkbase.chm
That's it. :)

MakeItSo
 
Thanks a stack!
You were very helpful.

Len
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top