Solved

Msgbox help

Posted on 2011-09-06
14
735 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
word 2016 1 29
Reference Controls on subforms 7 26
Binding recordsets to a form 6 21
Access subform not displaying on tab in naviation form 5 20
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

813 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

10 Experts available now in Live!

Get 1:1 Help Now