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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop up help

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I currently use the following code to have a box popup if a certain field is blank

Code:
If (IsNull(detailed_reason)) Then
        MsgBox "Please choose a Company", vbExclamation
        Cancel = True
    End If

I need help in modifying this so that the popup only pops up if another field [reason] has the text "Scheduling issue" in it AND the [detailed_reason] is blank.

Thank you for any help

Paul
 
Code:
If (IsNull(detailed_reason)) AND [reason] = "Scheduling issue" Then
        MsgBox "Please choose a Company", vbExclamation
        Cancel = True
    End If

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB.NET Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top