UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help File From Properties?, Office 2010    
 
   
Heatshiver
post May 6 2012, 07:29 AM
Post #1

UtterAccess Addict
Posts: 147



I am not sure if this is the right are to post this, but it seemed to be the closest.

I have a .CHM help file ready to go and I'd like to place a button in my Access database. I read up on how to add it here initially:

http://support.microsoft.com/kb/296231

This didn't seem to work when I pressed F1, and I made sure the file was in the same folder as the database (along with the other steps).

I then tried using VBA code from both of these links:

http://www.nogoodatcoding.com/howto/...-help-workshop

http://msdn.microsoft.com/en-us/libr...ice.10%29.aspx

I understand that the first seems to reference just VB, and the second is for Excel. I did try to manipulate the code, but nothing seems to work. Does anyone know a VBA code that will refer to the .CHM help file?
Go to the top of the page
 
+
pere_de_chipstic...
post May 6 2012, 08:57 AM
Post #2

UtterAccess VIP
Posts: 7,584
From: South coast, England



Hi HeatShiver

I created a CHM help file some while ago, and used the following code:
CODE
Public Function OpenFormHelp(intHelpID as Long )
On Error GoTo err_OpenFormHelp
        
    Dim strFileName As String
    strFileName = Application.CurrentProject.Path & "\HelpFileName.chm"
    IF Dir(strFileName) = "" Then
        Msgbox "Unable to find Help File",vbInformation,"Help File Error"
        Exit Function
    End IF

    If HtmlHelp(0, strFileName, &HF, intHelpID) = 0 Then  
        MsgBox "Unable to find topic in Help file.", vbExclamation, "Help File Error"
    End if

exit_OpenFormHelp:
    Exit Function
    
err_OpenFormHelp:
    MsgBox err.Description, vbOKOnly, "Help File Error"
    Resume exit_OpenFormHelp
    
End Function


hth
Go to the top of the page
 
+
Marsupilami72
post May 8 2012, 03:01 AM
Post #3

UtterAccess Addict
Posts: 180
From: Germany



You don´t need any VBA Code to refer to a help file...

Did you set the Helpfile path and HelpContextId properly?

How did you create your .CHM file? With HTML Help Workshop? Map.h and Alias.h are correctly attached?
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 20th May 2013 - 05:07 PM