Solved

Msgbox help

Posted on 2011-09-06
14
724 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
  • 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
 
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now