msgbox syntax question



Hello all.

I once read, I think in this forum, that the msgbox syntax should be:

msgbox "Your message", vbInformation Or vbYesNo

rather than:

msgbox "Your message", vbInformation + vbYesNo

I can't remember why one uses OR instead of +, can someone please refresh my
memory?

Thank you

Regards

David Clifford


.



Relevant Pages

  • Re: msgbox syntax question
    ... I once read, I think in this forum, that the msgbox syntax should be: ... msgbox "Your message", vbInformation Or vbYesNo ... Dim eBitMask As VbMsgBoxStyle ...
    (microsoft.public.vb.syntax)
  • Re: Open A reprt with Conditions from a subform
    ... If IsNullThen MsgBox "You Have Chosen a Mating Order That Has No Value. ... vbInformation, "Breed Manager" Cancel = -1 ElseIf IsNullThen ...
    (microsoft.public.access.reports)
  • Re: OnNotInList
    ... Private Function NotInListWarning() ... > MsgBox "You must select a value from the list!", vbInformation, ... > Private Sub Combo1_NotInList ...
    (microsoft.public.access.formscoding)
  • Re: Use of a bar code scanner - quickest update possible?
    ... MsgBox "Update Successful" ... MsgBox "Item has already been Received - Please hold for Management", vbInformation, "ERROR" ... Set rst = New ADODB.Recordset ...
    (microsoft.public.access.formscoding)
  • =?iso-8859-15?Q?Re:_Pr=FCfen=2C_ob_nur_Excel_offen_oder_auch_Arbeitsmappen?=
    ... MsgBox "Bitte schließen Sie zuerst alle Excel-Dateien", vbInformation ... WinXP Prof und Excel 2007 SP1 ...
    (microsoft.public.de.excel)