Inputbox Question
- From: "A P" <ap@xxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 08:02:04 +0800
Hi!
I want to control my input not to accept null or no value upon clicking OK
button. Since Inputbox function accepts input, I use it but upon clicking
Cancel button, the msgbox error also appear. I have attached my script for
you to check out.
Private Sub cmdAdd_Click()
strInput = Trim(InputBox("Enter Name: ", "Append Name"))
If strInput = "" Then
MsgBox ("Null not allowed... Please try again"), vbCritical, "Error
Message"
Else
.
statements
.
.
.
End If
End Sub
Hoping for your response.
regards,
Me
.
- Follow-Ups:
- Re: Inputbox Question
- From: Ken Halter
- Re: Inputbox Question
- From: Michael C
- Re: Inputbox Question
- From: Bob Butler
- Re: Inputbox Question
- From: Michael Cole
- Re: Inputbox Question
- Prev by Date: Re: problem with variable
- Next by Date: Re: Form in a form???
- Previous by thread: Display Line Numbers
- Next by thread: Re: Inputbox Question
- Index(es):
Loading