Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Box Compile Error 1

Status
Not open for further replies.

BV874

Technical User
Nov 23, 2009
33
US
Hi,
I get a Compile Error: Expected:= on the following "OK" message box I am trying to create.

Private Sub DUE_DATE_AfterUpdate()
If Me!DUE_DATE < Me!PMTPOSTDT + 29 Then
MsgBox("The Next Due Date Falls within 30 days!",vbExclamation,"Warning")
End Sub

I am not sure what is wrong here. Thanks.
 
Use either this:
Call MsgBox("The Next Due Date Falls within 30 days!",vbExclamation,"Warning")
or this:
MsgBox "The Next Due Date Falls within 30 days!",vbExclamation,"Warning"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Private Sub DUE_DATE_AfterUpdate()
If Me!DUE_DATE < Me!PMTPOSTDT + 29 Then
MsgBox "The Next Due Date Falls within 30 days!",vbExclamation,"Warning"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top