Hi,
I use the following code on about 15 buttons on one form.
I think I can put it into one function and pass the Scorepoint which is the variable to it, then call the code to run.
Can someone advise the best way to do it, please.
Dim ScorePoint as integar
Scorepoint = 1 (This changes for each button between 1 and 6)
If Me.tRunsRequired.Value = 0 Then
End
Else
Me.tRunsRequired.Value = Me.tRunsRequired.Value - ScorePoint
End If
Thanks
Daz...
I use the following code on about 15 buttons on one form.
I think I can put it into one function and pass the Scorepoint which is the variable to it, then call the code to run.
Can someone advise the best way to do it, please.
Dim ScorePoint as integar
Scorepoint = 1 (This changes for each button between 1 and 6)
If Me.tRunsRequired.Value = 0 Then
End
Else
Me.tRunsRequired.Value = Me.tRunsRequired.Value - ScorePoint
End If
Thanks
Daz...