increment on exit

J

JohnLute

How can I increment a numeric field to the next number on exiting the field's
control in a subform? I can't find any exmples here and I'm sure it must be
easy!

Thanks for your help!
 
L

Linq Adams via AccessMonster.com

Private Sub YourTextBox_Exit(Cancel As Integer)
If Not IsNull(Me.YourTextBox) Then
Me.YourTextBox = Me.YourTextBox + 1
Else
Me.YourTextBox = 1
End If
End Sub

BTW, Love your Veggie Dip!
 
J

JohnLute

Thanks, Linq!

I wish I could say it was *MY* veggie dip - then maybe I could have
someextra money in the bank!
 

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

Top