Stop At Zero

  • Thread starter Thread starter DS
  • Start date Start date
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top