Is it at all possible to increment a number in a table depending upon the number in the row previous.
Eg
Field1
C1
C2
C3
C4
I know it is possible as the auto number field set by access when no primary key is defined carries a similar feature out. I have looked at the field properties for the autonumber and an option of increment is available in a new value section however for any fields that i create I can not get this option to appear.
I have tried to use the default value to try and increment the cell previous but im not too sure to do this either.I can dio basic sums bu im not too sure how to increment a number or how to reference other cells. Im not too sure if this is possible tho.
Has anybody got any idea how to do this. Is there a way of doing this via VBE? I am familiar with loops but am not too sure how to manipulate tables in access using code.
Thanks for your time
Chris
Eg
Field1
C1
C2
C3
C4
I know it is possible as the auto number field set by access when no primary key is defined carries a similar feature out. I have looked at the field properties for the autonumber and an option of increment is available in a new value section however for any fields that i create I can not get this option to appear.
I have tried to use the default value to try and increment the cell previous but im not too sure to do this either.I can dio basic sums bu im not too sure how to increment a number or how to reference other cells. Im not too sure if this is possible tho.
Has anybody got any idea how to do this. Is there a way of doing this via VBE? I am familiar with loops but am not too sure how to manipulate tables in access using code.
Thanks for your time
Chris
Last edited: