Hi Thanks for looking at this for me.
I'm trying to do this:
Y is a public variable in a .bas module
The code in the form increments Y by 1 each time a button is pressed up untill 10.When
Y=10 I want Y to de-increment by 1 untill "0"
then increment by one again and so forth...
My problem is Y bangs into itself at 9 when I try to de-increment.Is there a way to do this? (Y must stay global to all 5 forms).

(suedo code
ButtonPress event()

If Y < 10 Then
Y=Y+1
'when Y = 10 forget previous code then do this
Y=Y-1
'When Y = 0 let's increment it again
Y=Y+1
End If
End Sub

I think you get the idea.Is there some method to make this happen?