View Single Post
  #3 (permalink)  
Old 10-21-2007, 11:04 AM
ikkeugh ikkeugh is offline
Learning Programmer
 
Join Date: Sep 2007
Posts: 61
Rep Power: 5
ikkeugh is on a distinguished road
Default

But what if it is 0 ?
Why doesn't this work ?

Code:
    If Text1.Text <> Val(Text1.Text) Then
      scl = 1  'if it's not a number , it's 1
    ElseIf Text1.Text = Val(Text1.Text) Then
      scl = Val(Text1.Text) 'if it's a number , even 0
    End If
Reply With Quote