D
DubboPete
Hi all,
I have a listbox which includes four or more teams, each team is numbered 1
thru 4 or more.
When I click my listbox team, I would like [teamA] to be updated to that
value, and on clicking the listbox a second time, [teamB] to be updated to
the second value.
My code however updates BOTH boxes simultaneously. Can someone point out
where it's going wrong please?
Private Sub List6_Click()
If Not (CInt(Me.[TeamA] = 0)) Then
'if Team A is already selected then
Me.[TeamB] = Me.List6
Else
'update Team A
Me.[TeamA] = Me.List6
End If
thanks in anticipation
DubboPete
End Sub
I have a listbox which includes four or more teams, each team is numbered 1
thru 4 or more.
When I click my listbox team, I would like [teamA] to be updated to that
value, and on clicking the listbox a second time, [teamB] to be updated to
the second value.
My code however updates BOTH boxes simultaneously. Can someone point out
where it's going wrong please?
Private Sub List6_Click()
If Not (CInt(Me.[TeamA] = 0)) Then
'if Team A is already selected then
Me.[TeamB] = Me.List6
Else
'update Team A
Me.[TeamA] = Me.List6
End If
thanks in anticipation
DubboPete
End Sub