R
robboll
Given: A 5 x 5 matrix:
| 1 2 3 4 5
| 6 7 8 9 10
y 11 12 13 14 15
| 16 17 18 19 20
| 21 22 23 24 25
----------------------- x ----------------
Where if you select 13, the array function should return
13, 8, 9, 14, 19, 18, 17, 12, 7, 2, 3, 4, 5, 10, 15, 20, 25 . . .
note the spiral pattern clockwise around number 13.
Pseudocoding, using dbase I would use something like:
arrayname[x,y-1] && this would pull the number above 12 (7)
arrayname[x+1,y-1] && this would pull the number above and one
right
&& of 12 (8)
arrayname[x+1,y] && this would pull the number directly right
of 12 (13)
Any ideas of how to do this using MS Access? Some folks in another
newsgroup suggested Excel. I would like to stick to MS Access
functionality.
Thanks,
Rbollinger
| 1 2 3 4 5
| 6 7 8 9 10
y 11 12 13 14 15
| 16 17 18 19 20
| 21 22 23 24 25
----------------------- x ----------------
Where if you select 13, the array function should return
13, 8, 9, 14, 19, 18, 17, 12, 7, 2, 3, 4, 5, 10, 15, 20, 25 . . .
note the spiral pattern clockwise around number 13.
Pseudocoding, using dbase I would use something like:
arrayname[x,y-1] && this would pull the number above 12 (7)
arrayname[x+1,y-1] && this would pull the number above and one
right
&& of 12 (8)
arrayname[x+1,y] && this would pull the number directly right
of 12 (13)
Any ideas of how to do this using MS Access? Some folks in another
newsgroup suggested Excel. I would like to stick to MS Access
functionality.
Thanks,
Rbollinger