Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Houston, Texas, USA
    Posts
    432
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Check for blank field (VB Script & MS Outlook 2002)

    I need HELP! I am trying to set it up so that if a field is blank it will not go forward ( In this case, it will mail the form). If ithe field is blank I want it to return pop a message up and say "you forgot to fill it in". But, if they fill it in I want it to just continue to the next step.
    '-=-=-=-=-=-=-=-=-
    ' Font Status
    '-=-=-=-=-=-=-=-=-
    Sub Blankit()
    Stophere=0
    If UserProperties.Find("fstatus").Value = "" then
    Msgbox "Client field cannot be blank. Try again.",vbCritical
    Stophere = 1
    End if

    If Stophere = 0 then
    end If
    End Sub
    '-=-=-=-=-=-=-=-=-

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Check for blank field (VB Script & MS Outlook 2002)

    Is this triggered by the Item_Send event (not sure of its exact name)? If so, I think you probably have to stop the event from happening and force the user to click again; I don't think you can "pause for input." You could take the extra step of presenting a UserForm (or InputBox) to collect the data and insert it yourself before proceeding. Not sure it's worth the extra work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •