I have a form that uses a check box to add and remove a member from a list box. When I check and un-check the box there is a message box that pops up and tells the user whether the member has been added to the list or removed from the list. The members name is being added and removed from the list ok however there is an error with the message box code.
Code:
Private Sub Check1409_Click()
' Note: vbTrue = -1
If Me.Check1409 = vbTrue Then
MsgBox ("Member Has Been Added To The List")
Else
MsgBox ("Member Has Been Removed From The List")
End If
End Sub
The above is the code that I am using. the error is "Argument Not Optional" and the "MsgBox" in the line MsgBox ("Member Has Been Added To The List") is high lighted in blue. There is no error number.
I am using Access 2016 32 bit