B
bob
Hi
I need to allocate certain work to 2 teams, the only way I can think of
doing this is by building a counter and then giving the even numbers to one
team and the odd numbers to the other.
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblTeamCounter", dbOpenDynaset)
rs.Edit
rs!RepNum = rs!RepNum + 1
rs.Update
rs.Close: Set rs = Nothing
The above code gives me the counter how do I code it to lookup the REPNum
and if it is even number then
Me.Team1 = True
Else
Me.Team2 = True
Or is there a better way of doing this?
Thanks,
Bob
I need to allocate certain work to 2 teams, the only way I can think of
doing this is by building a counter and then giving the even numbers to one
team and the odd numbers to the other.
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblTeamCounter", dbOpenDynaset)
rs.Edit
rs!RepNum = rs!RepNum + 1
rs.Update
rs.Close: Set rs = Nothing
The above code gives me the counter how do I code it to lookup the REPNum
and if it is even number then
Me.Team1 = True
Else
Me.Team2 = True
Or is there a better way of doing this?
Thanks,
Bob