473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding help functionality (chm files) to Access projects

Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
Jan 26 '07 #1
2 3815
MMcCarthy
14,534 Expert Mod 8TB
Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
In your custom menubar add the 'Microsoft Access Help' menu option from the Windows and Help category. Then change the label to whatever you want and the help file path to the path to your chm file.

I'm not sure how you would add it to the switchboard.

Mary
Jan 27 '07 #2
ADezii
8,834 Expert 8TB
Is there a method of linking a chm file to a custom menu option or custom toolbar button? I have documentation for my Access application and I want to do a Help menu, but I don't know how to link the file to my mdb file. I also want to link the Help file to a button in my Switchboard. How do I get these things done?
You can launch a Custom Help File from the Switchboard Manager by using the Run Code Command option within the Switchboard Manager and specifying a Function Name that will execute your Help File (*.chm) strictly by file extension association. It does, however, rely on an API call to accomplish this. The basic code follows. Since you can't specify Function Parameters within the call, you must track what Switchboard and associated buttons have been pressed via Public Variables. If you need further assistance, please let me know.
Expand|Select|Wrap|Line Numbers
  1. Public Success As Boolean
  2.  
  3. Declare Function ShellExecute Lib "shell32.dll" _
  4. Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
  5. ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Expand|Select|Wrap|Line Numbers
  1. Public Function Execute_Program(ByVal strFilePath As String, ByVal strParms As String, ByVal strDir As String) As Boolean
  2.   Dim hwndProgram As Integer
  3.   hwndProgram = ShellExecute(0, "Open", strFilePath, strParms, strDir, 3)     '3 ==> Show Maximized
  4. End Function
In the Switchboard, the FunctionName would be something like fExecuteFileByExtension and the Function itself would be something similar to this:
Expand|Select|Wrap|Line Numbers
  1. 'The 1st button on the Test Launch Help File Switchboard would open the Calculator Help File (Calc.chm)
  2. Public Function fExecuteFileByExtension()
  3. Select Case gSwitchboardName
  4.   Case "Test Launch Help File"
  5.       Select Case gButtonClicked
  6.          Case 1    'Button 1
  7.             Success = Execute_Program("C:\Calc.chm", "", "")
  8.          Case 2    'Button 2
  9.          Case 3    'Button 3
  10.          Case 4    'Button 4
  11.          Case 5    'Button 5
  12.       End Select
  13.   Case "HazMat Technician (Tier Training)"
  14.       Select Case gButtonClicked
  15.          Case 3    'Button 3
  16.       End Select
  17.   Case "PFD HazMat Training"
  18.       Select Case gButtonClicked
  19.          Case 3    'Button 3
  20.          Case 4    'Button 4
  21.       End Select
  22.   Case "You Get The Idea"
  23. End Select
Jan 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Thomas | last post by:
I' currently writing documentation for one of our projects and I need to access the Context ID of a .chm file. My problem is that the .Net HelpProvider/HelpNavigator does not support access to the...
0
by: Arun Puri | last post by:
Windows Setup projects have a folder/placeholder for documentation files. How do I attach a CHM file to that placeholder. I am creating a setup for Windows Forms App. I surely do not seem able to...
0
by: David Spencer | last post by:
Here you can find a good tool for chm creation http://abeetech.com/chmmakerpro/ You must not to create subdirectories. Just add all your html-files from one directory and structurize the TOC as...
3
by: Sushil Prasad | last post by:
I am having problem in displaying the compiled help file. In asp.net app I have link button laballed help. On the users click of this button i do the respose.redirect to the url of the .chm file....
0
by: Pakmanoncrack | last post by:
The software company I work for creates 4 chm files from c# code with ndoc and then combines them into a fifth chm file by merging through html help. This is all done through a dos build and there...
3
by: Fla | last post by:
Hy! I've got the following question in VB.NET. How can I access to a particular topic of a CHM file generated by HTML Help Workshop? Some newsgroups/sites on web suggest to use CHM file for...
15
by: John Salerno | last post by:
Hi all. I apologize since this is only remotely Python related, but I hope someone might now the solution. I tried opening my Python chm docs just now, as well as the one for wxPython, and both...
2
by: jamesnkk | last post by:
I want to create a Help contents in Ms Access, I have download some utilities that help me created those html files and a file with extension CHM. In Windows environment, If I double click the CHM...
5
by: Teja | last post by:
How to create a helpbook and display it using python(in Boa). Also, how to generate CHM files in Boa(Python)??? Any pointers please................
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.