Results 1 to 6 of 6

Thread: Validate Input *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2004
    Posts
    131

    Validate Input *RESOLVED*

    this is the only problem I'm still having. I didn't put it in my last thread b/c I figured everything else out. Anyway I need to make an if, then statement for this:

    If not number or = 0 or < 0 then display message box

    This is what I got and it works fine, but don't know how to make it appear if someone enters Text (ex:asfasfafsas)

    VB Code:
    1. If txtTransaction.Text <= "0" Then
    2.             MessageBox.Show("Please enter an amount > 0.", "Error")
    3.             txtTransaction.Focus()
    4.         End If
    Last edited by twisted; Jun 15th, 2004 at 11:21 AM.
    Twisted

Posting Permissions

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



Click Here to Expand Forum to Full Width