C
c8tz
Hi,
I need to create a query that: from a column BlockNo creates a
column:RowNo and a second Column
osNo
There are 72 BlockNo ie. BlockNo 1 -> BlockNo 72
There are 8(1-8) different RowNo and 9(0-8) different PosNo.
so if BlockNo=1 then RowNo = 1 and PosNo=0
if BlockNo=2 then RowNo=1 and PosNo=1
.....
.....
...
if BlockNo=9 then RowNo=1 and PosNo=8
if BlockNo=10 then RowNo=2 and PosNo=0
etc..
till
if BlockNo=72 then RowNo=8 and PosNo=8
**
I've used an IIF statement for the RowNo Column but too long for PosNo
- Maybe a Case Statement would be better - but that beats me -
I would appreciate all assistance -
Thanks
C
I need to create a query that: from a column BlockNo creates a
column:RowNo and a second Column

There are 72 BlockNo ie. BlockNo 1 -> BlockNo 72
There are 8(1-8) different RowNo and 9(0-8) different PosNo.
so if BlockNo=1 then RowNo = 1 and PosNo=0
if BlockNo=2 then RowNo=1 and PosNo=1
.....
.....
...
if BlockNo=9 then RowNo=1 and PosNo=8
if BlockNo=10 then RowNo=2 and PosNo=0
etc..
till
if BlockNo=72 then RowNo=8 and PosNo=8
**
I've used an IIF statement for the RowNo Column but too long for PosNo
- Maybe a Case Statement would be better - but that beats me -
I would appreciate all assistance -
Thanks
C