?
Solved

Msgbox help

Posted on 2011-09-06
14
Medium Priority
?
764 Views
Last Modified: 2012-05-12
Hello experts,
all i want to accomplish is to make the msgbox to have a button (Help) which will open a form of my small application. I read Microsoft Help file of access on how to use the msgbox but has anyone tried that ?

Thanks and sorry wasting your time !
0
Comment
Question by:stathisx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 2
  • +1
14 Comments
 
LVL 75
ID: 36492639
The Access Message Box cannot have a button named Help ... only the button you see in the image below:

mx
Capture5.gif
0
 
LVL 42

Expert Comment

by:dqmq
ID: 36492697
mx is correct.  However, you can develop a small, modal, popup form that looks and acts very much like a msgbox.  Such a form can have any kind of functionality you like, including a Help button.    
0
 
LVL 75
ID: 36492700
Well ... the MsgBox is not that easy to emulate ... :-)

mx
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:stathisx
ID: 36492735
is there any good article to show me how to create a help file and use it on all my msgboxes ?
0
 
LVL 42

Expert Comment

by:dqmq
ID: 36492740
Except for passing back the return code (to detect what button was pressed), what other challenges do you encounter?  
0
 
LVL 75
ID: 36492757
None. Because I have no need to reinvent the wheel in this case.  But by the time you take into account all possible cases of buttons and icons, etc ... I think it's a bit more that a popup form with a button - if you want a true message box.

mx
0
 
LVL 1

Author Comment

by:stathisx
ID: 36492783
i just create for example :
HELP.HLP file and use the context 1000 . The challenges are how to use correctly the context and if there is a specific format for the HLP file .
example :
msgbox "Error msg",vbexclamation+vbokonly,"ERROR!","HELP.HLP",1000

the HELP.HLP file should be in the same directory where tha database file is located or do i have to declare it somewhere else?
0
 
LVL 75
ID: 36492808
Well, I've never ever used that ... so I really don't know. I would guess ... in the same folder.

mx
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 36493344
The .hlp file does indeed need to be of a certain format (it is a WinHelp file).  You can find help file authoring tools to build these.  I believe you can specify a full path for that file.

When using a messagebox, you can add a help button like this:

msgbox "Error msg",vbMsgBoxHelpButton,"ERROR!","HELP.HLP",1000

The help file and the 'context' both have to be provided for this to work; the context specifies the topic in the .hlp file that needs to be displayed.

That said, my understanding is that the .hlp file format is no longer being supported by Microsoft, so I'm not sure if using ,hlp files in message boxes are going to be supported any more either.

I have tried using this type of message box, but found this solution very cumbersome.  I eventually would up writing a compreshensive Word document, and using "Application.followHyperlink" to open the document from a link or command button.

0
 
LVL 1

Author Comment

by:stathisx
ID: 36520215
Thank you for the directions provided. I will make it that way (Application.hyperlink) as MS has stopped support for HLP files editor .
0
 
LVL 61

Expert Comment

by:mbizup
ID: 36520242
Glad to help out.

I definitely think that is the way to go, and looking around a bit online after posting that comment, It seems other developers are doing the same.
0
 
LVL 1

Author Comment

by:stathisx
ID: 36520266
yes i have already tried your suggestion and seems to do exactly was i was trying to do. It seems that there is no other way to do this by using the msgbox .
Thanks again!
0
 
LVL 75
ID: 36520276
It's too bad that Help button can't be detected in a response like the other buttons.

mx
0
 
LVL 1

Author Comment

by:stathisx
ID: 36520329
We cant have it all !! This is MS !!!!!!! :)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question