Results 1 to 11 of 11

Thread: add +1 value to textbox

Threaded View

  1. #10
    Addicted Member masoudk1990's Avatar
    Join Date
    Nov 2013
    Location
    Persia
    Posts
    172

    Re: add +1 value to textbox

    Quote Originally Posted by vbnoob00 View Post
    i keep getting that msgbox even on 0001
    Sorry

    Code:
        If (Val(Text1.Text) < 9999) Then
            Text1.Text = Format(Val(Text1.Text + 1), "0000")
        Else
            MsgBox "Overflow!", vbCritical, "Error!"
        End If
    Last edited by masoudk1990; Oct 28th, 2015 at 03:10 AM.
    Computer Enterprise Masoud Keshavarz
    For more information contact [email protected]

Tags for this Thread

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