Stop At Zero

D

DS

I have a Command Button that reduces a Textbox by 1.
Once the Textbox = 0 I need the Command Button to stop reducing by 1.
This is what I have:

Me.Text18 = Me.Text18 - 1
If Me.Text18 = 0 Then
End If

Thanks
DS
 
R

Rick Brandt

DS said:
I have a Command Button that reduces a Textbox by 1.
Once the Textbox = 0 I need the Command Button to stop reducing by 1.
This is what I have:

Me.Text18 = Me.Text18 - 1
If Me.Text18 = 0 Then
End If

Thanks
DS

If Me.Text18 > 0 Then Me.Text18 = Me.Text18 - 1
 
Top