I need help with opening a help file

  • Follow


I have a form that when I open it will display the help file. Every time I
try this I get the Open, Save, or Cancel commands.

This is the code I'm trying to use.
Me.WebBrowser0.Navigate "e:\nci database\nci taps\working taps\taps 03-03\
taps-help.chm"

I don't care if it opens in a browser or not I just want it to display the
help file and its content.

I know I can set the  Help File and Help Context Id for the individual
screens. This is the main help file I'm trying to display.

Thanks for your help.

-- 
Message posted via http://www.accessmonster.com

0
Reply Afrosheen 3/9/2010 2:34:18 PM

See whether what David Liske has at 
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhaccess.html helps.

-- 
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Afrosheen via AccessMonster.com" <u46942@uwe> wrote in message 
news:a4c0fce1040e4@uwe...
>I have a form that when I open it will display the help file. Every time I
> try this I get the Open, Save, or Cancel commands.
>
> This is the code I'm trying to use.
> Me.WebBrowser0.Navigate "e:\nci database\nci taps\working taps\taps 03-03\
> taps-help.chm"
>
> I don't care if it opens in a browser or not I just want it to display the
> help file and its content.
>
> I know I can set the  Help File and Help Context Id for the individual
> screens. This is the main help file I'm trying to display.
>
> Thanks for your help.
>
> -- 
> Message posted via http://www.accessmonster.com
> 


0
Reply Douglas 3/9/2010 4:09:18 PM


Thanks for getting back to me Doug..
Here's what I did.

I had a menu tool bar so I just added the new menu

I copied and pasted the code in to a new module
I created a new macro called MacHelp with
RunCode
Function Name: ShowContents 

I made sure the MyHelp.chm file was the same location as the database.
I get the error: Can not find the name ShowContents

I don't think I've entered the wrong information

Douglas J. Steele wrote:
>See whether what David Liske has at 
>http://frogleg.mvps.org/helptechnologies/htmlhelp/hhaccess.html helps.
>
>>I have a form that when I open it will display the help file. Every time I
>> try this I get the Open, Save, or Cancel commands.
>[quoted text clipped - 10 lines]
>>
>> Thanks for your help.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

0
Reply Afrosheen 3/9/2010 5:37:13 PM

Is this a stand-alone module, or is it a class module, or a module 
associated with a form or report?

What's your code for ShowContents?

-- 
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Afrosheen via AccessMonster.com" <u46942@uwe> wrote in message 
news:a4c295e4150e9@uwe...
> Thanks for getting back to me Doug..
> Here's what I did.
>
> I had a menu tool bar so I just added the new menu
>
> I copied and pasted the code in to a new module
> I created a new macro called MacHelp with
> RunCode
> Function Name: ShowContents
>
> I made sure the MyHelp.chm file was the same location as the database.
> I get the error: Can not find the name ShowContents
>
> I don't think I've entered the wrong information
>
> Douglas J. Steele wrote:
>>See whether what David Liske has at
>>http://frogleg.mvps.org/helptechnologies/htmlhelp/hhaccess.html helps.
>>
>>>I have a form that when I open it will display the help file. Every time 
>>>I
>>> try this I get the Open, Save, or Cancel commands.
>>[quoted text clipped - 10 lines]
>>>
>>> Thanks for your help.
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1
> 


0
Reply Douglas 3/9/2010 6:19:04 PM

Stand alone module called: MyHelp
In the macro I just have: ShowIndex
This is part of the code in the module

Public Function ShowIndex() As Long
ShowIndex = HTMLHelpStdCall(0, "myhelp.chm", HH_DISPLAY_INDEX, 0)
End Function

Douglas J. Steele wrote:
>Is this a stand-alone module, or is it a class module, or a module 
>associated with a form or report?
>
>What's your code for ShowContents?
>
>> Thanks for getting back to me Doug..
>> Here's what I did.
>[quoted text clipped - 20 lines]
>>>>
>>>> Thanks for your help.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

0
Reply Afrosheen 3/9/2010 6:50:27 PM

If you go to the Immediate Window (Ctrl-G), type ?ShowIndex() and hit Enter, 
does it work?

-- 
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Afrosheen via AccessMonster.com" <u46942@uwe> wrote in message 
news:a4c3399685fb3@uwe...
> Stand alone module called: MyHelp
> In the macro I just have: ShowIndex
> This is part of the code in the module
>
> Public Function ShowIndex() As Long
> ShowIndex = HTMLHelpStdCall(0, "myhelp.chm", HH_DISPLAY_INDEX, 0)
> End Function
>
> Douglas J. Steele wrote:
>>Is this a stand-alone module, or is it a class module, or a module
>>associated with a form or report?
>>
>>What's your code for ShowContents?
>>
>>> Thanks for getting back to me Doug..
>>> Here's what I did.
>>[quoted text clipped - 20 lines]
>>>>>
>>>>> Thanks for your help.
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1
> 


0
Reply Douglas 3/9/2010 8:11:59 PM

Hi Doug,
I did the ?showindex() and debug.print showindex() and both came up with a
number 0

Douglas J. Steele wrote:
>If you go to the Immediate Window (Ctrl-G), type ?ShowIndex() and hit Enter, 
>does it work?
>
>> Stand alone module called: MyHelp
>> In the macro I just have: ShowIndex
>[quoted text clipped - 14 lines]
>>>>>>
>>>>>> Thanks for your help.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

0
Reply Afrosheen 3/9/2010 8:30:49 PM

Doug I didn't use this code because I thought that because the chm file is in
the same folder as the database it should work. Am I correct? If I have to
use it, do I have to create a form for this?

Again Thanks for your help..


Left$(CurrentDB.Name, Len(CurrentDB.Name) - Len(Dir(CurrentDB.Name)))
or, more efficiently:
Dim strFullPath As String
Dim strPathOnly As String
strFullPath = CurrentDB.Name
strPathOnly = Left$(strFullPath, Len(strFullPath) -
Len(Dir(strFullPath)))

Douglas J. Steele wrote:
>If you go to the Immediate Window (Ctrl-G), type ?ShowIndex() and hit Enter, 
>does it work?
>
>> Stand alone module called: MyHelp
>> In the macro I just have: ShowIndex
>[quoted text clipped - 14 lines]
>>>>>>
>>>>>> Thanks for your help.

-- 
Message posted via http://www.accessmonster.com

0
Reply Afrosheen 3/9/2010 9:50:52 PM

Good Morning Doug;
I don't know what I did. I must have had my nose pointing the right way or I
was scratching my back or something, but it seems to be working now.

I did a test with another module that I knew was working called mouseOn().
When I just put mouseOn Access couldn't find it. When I put mouseon, access
couldn't find it. When I put mouseOn() then it found it and worked. So, I
went back through the Macros and changed everything to the way the function
was spelled and Vola! it started working.

Thanks for your help with this. I really appreciate it.

Douglas J. Steele wrote:
>If you go to the Immediate Window (Ctrl-G), type ?ShowIndex() and hit Enter, 
>does it work?
>
>> Stand alone module called: MyHelp
>> In the macro I just have: ShowIndex
>[quoted text clipped - 14 lines]
>>>>>>
>>>>>> Thanks for your help.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

0
Reply Afrosheen 3/10/2010 11:37:57 AM

You need to fully qualify the path to the chm file.

Since David wrote his article, though,  Access introduced an easier way to 
determine the path of the current database.

Try

ShowIndex = HTMLHelpStdCall(0, CurrentProject.Path & "\myhelp.chm", 
HH_DISPLAY_INDEX, 0)

Sorry I missed that before.

-- 
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Afrosheen via AccessMonster.com" <u46942@uwe> wrote in message 
news:a4c4ccd130ea1@uwe...
> Doug I didn't use this code because I thought that because the chm file is 
> in
> the same folder as the database it should work. Am I correct? If I have to
> use it, do I have to create a form for this?
>
> Again Thanks for your help..
>
>
> Left$(CurrentDB.Name, Len(CurrentDB.Name) - Len(Dir(CurrentDB.Name)))
> or, more efficiently:
> Dim strFullPath As String
> Dim strPathOnly As String
> strFullPath = CurrentDB.Name
> strPathOnly = Left$(strFullPath, Len(strFullPath) -
> Len(Dir(strFullPath)))
>
> Douglas J. Steele wrote:
>>If you go to the Immediate Window (Ctrl-G), type ?ShowIndex() and hit 
>>Enter,
>>does it work?
>>
>>> Stand alone module called: MyHelp
>>> In the macro I just have: ShowIndex
>>[quoted text clipped - 14 lines]
>>>>>>>
>>>>>>> Thanks for your help.
>
> -- 
> Message posted via http://www.accessmonster.com
> 


0
Reply Douglas 3/10/2010 11:42:52 AM

Thanks Doug. I changed all the functions and it seemed to work a little
faster.
I saved David's web page as a pdf, so I'll go in and change it for future
references.

Thanks again for your help.

Douglas J. Steele wrote:
>You need to fully qualify the path to the chm file.
>
>Since David wrote his article, though,  Access introduced an easier way to 
>determine the path of the current database.
>
>Try
>
>ShowIndex = HTMLHelpStdCall(0, CurrentProject.Path & "\myhelp.chm", 
>HH_DISPLAY_INDEX, 0)
>
>Sorry I missed that before.
>
>> Doug I didn't use this code because I thought that because the chm file is 
>> in
>[quoted text clipped - 20 lines]
>>>>>>>>
>>>>>>>> Thanks for your help.

-- 
Message posted via http://www.accessmonster.com

0
Reply Afrosheen 3/10/2010 2:59:25 PM

10 Replies
222 Views

(page loaded in 0.201 seconds)

Similiar Articles:
















7/25/2012 9:32:15 AM


Reply: