this is what i need the database to do.
Wk 1
Driver No Driver Name
1 Andy Roberts
2 Billy Andrews
3 John McInnon
Rotate
Wk2
Driver No Driver Name
1 John McInnon
2 Andy Roberts
3 Billy Andrews
Wk3
Driver No Driver Name
1 Billy Andrews
2 John McInnon
3 Andy Roberts
and so on....
The driver number does not change ie the top driver is no
1 and the bottom driver is no 250.
(the actual rota stays the same)
If anyone has any input please drop me an e-mail or reply
to this posting.
Thanks in advance
Mike Brownlie
apply
Updated DriverNo = 1 + (DriverNo MOD 3)
in succession to get a new "cyclical shift" each time.
Hoping it may help,
Vanderghast, Access MVP
"Mike Brownlie" <mad...@michaelbrownlie.fnet.co.uk> wrote in message
news:503701c1ded2$8e1e1880$3def2ecf@TKMSFTNGXA14...
In an update query. Make a backup first, then, update DriverNo to:
1+([DriverNo] Mod 3)
Run the query once a week (each time you want to make a new "shift")
Vanderghast, Access MVP
Note that it may not work , with Jet, if you have a UNIQUE index/constraint on DriverNo, since when
1 will try to become a 2, there is already a two, the update fails.
Vanderghast, Access MVP
"Michel Walsh" <Vande...@msn.com> wrote in message news:#uqY#9y3BHA.2260@tkmsftngp02...