Question : Proper syntax?

I think this is an easy one....

what is the proper syntax to include the >> vbInformation, "Information" << (which I normally use in a msgbox) in:

txtMessage = "Record already exist!" & vbCrLf & txtMessage

The below (with >> vbInformation, "Information" <<) contains incorrect syntax:
txtMessage = "Record already exist!", vbInformation, "Information" & vbCrLf & txtMessage

Thanks,
Tom

Answer : Proper syntax?

Surely all you need is the code - *exactly* as you had above, provided by Nico.
Except for one small change... in the section beginning with the comment:

    'Throw message if check found error
    If Len(txtMessage) > 0 Then
        MsgBox txtMessage, vbInformation, "Information"
        Exit Sub
    End If
Random Solutions  
 
programming4us programming4us