Hey I'm writing this prompt box and I want to have it check to see if there is anything entered in the drop down menu except what is supposed to be there. If so I would like for it to do a MsgBox saying error please put something in ... yadda yadda. My problem is every thing that i have tried to check for the value of the strings has not worked because of syntax. If you could help me it would be greatly appreciated.
code:
If ("[Forms!PromptBox!FormName]" = "EmployeeDaily" Or "EmployeeWeekly" Or "EmployeeInformation" Or "Forecast" Or "OrderRegister") Then
If (MsgBox("Please select one of the options from below.", vbOKOnly, "Cancel") = vbOK) Then
Cancel = True
End If
End If
code:
If ("[Forms!PromptBox!FormName]" = "EmployeeDaily" Or "EmployeeWeekly" Or "EmployeeInformation" Or "Forecast" Or "OrderRegister") Then
If (MsgBox("Please select one of the options from below.", vbOKOnly, "Cancel") = vbOK) Then
Cancel = True
End If
End If