Results 1 to 2 of 2
Thread: vbMsgBoxHelpButton (2000 sr1)
2002-04-11, 09:18 #1
- Join Date
- Mar 2002
- St Albans, Hertfordshire, England
- Thanked 0 Times in 0 Posts
vbMsgBoxHelpButton (2000 sr1)
I have this piece of code:
If Check_Mandatory Then
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
WriteLog Now(), CurUser, Me![project Number], "Record Saved: " & Me![project title]
RetVal = MsgBox("All fields marked with an Asterix (*) are mandatory." & vbCrLf & vbCrLf & _
"Would you like to edit this record?" & vbCrLf & _
"(Selecting 'No' will cancel this record!)", vbMsgBoxHelpButton + vbYesNo + vbExclamation, "Mandatory Data Missing")
Select Case RetVal
MsgBox "Mandatory fields are: Project Title," & vbCrLf & _
" Date of Research," & vbCrLf & _
" CI Contact," & vbCrLf & _
" Business Unit," & vbCrLf & _
" Cost," & vbCrLf & _
" CI Manager," & vbCrLf & _
" Client Senior Mgr," & vbCrLf & _
" Agency," & vbCrLf & _
" Objectives.", vbOKOnly + vbInformation, "Mandatory Fields Listing"
Why is it that if the users select the Help button, nothing happens? Even in break mode, the dialogue box just sits there, and does nothing until another option is selected. Surely the help button should return a value of 16384 (Const vbmsgboxhelpbutton)?
I thought that it may be because I do not have a help file associated with the db, but surely this would return an error?
Any suggestions, other than building my own dialogue box form?
2002-04-11, 14:07 #2
- Join Date
- Jun 2001
- Crystal Beach, FL, Florida, USA
- Thanked 36 Times in 35 Posts
Re: vbMsgBoxHelpButton (2000 sr1)
The message box help button doesn't cause the message box to close. It merely displays the help message as specified by the Help File and Context included in the msgbox command line. Previously, if these were specified, the user had to use F1 to get help.