C
CCH
I'm creating my first Access form and am trying to figure out how to have a
field within a subform generate sequential numbers. The main table contains
Master_ID as its PK and the table the subform is based off of has the
following fields
Master_ID
Step_ID(PK)
Step_Number
Step_Instructions
The Master_ID's are linked in a one-to-many relationship.
The user will be entering unique instructions for each Master_ID. When the
subform opens, I would like the first Step_Number to start with 1, the second
step be 2, etc.. Individual Master_ID's could have one or many steps. Every
time a new Master_ID is created, the Step_Number should start over with 1 and
increment with each entry for that particular Master_ID.
I'd also like to be able to insert a row, so if a user enters steps 1-5, and
then realizes they have forgotten a step, they can insert it in the
appropriate place. An alternative to this would be to add it at the end but
change the number from 6 to 2 and then clicking on a command button to
reorder the steps (similar to the Netflix site queue, if you are familiar
with that)
Thanks for any help you can give!
field within a subform generate sequential numbers. The main table contains
Master_ID as its PK and the table the subform is based off of has the
following fields
Master_ID
Step_ID(PK)
Step_Number
Step_Instructions
The Master_ID's are linked in a one-to-many relationship.
The user will be entering unique instructions for each Master_ID. When the
subform opens, I would like the first Step_Number to start with 1, the second
step be 2, etc.. Individual Master_ID's could have one or many steps. Every
time a new Master_ID is created, the Step_Number should start over with 1 and
increment with each entry for that particular Master_ID.
I'd also like to be able to insert a row, so if a user enters steps 1-5, and
then realizes they have forgotten a step, they can insert it in the
appropriate place. An alternative to this would be to add it at the end but
change the number from 6 to 2 and then clicking on a command button to
reorder the steps (similar to the Netflix site queue, if you are familiar
with that)
Thanks for any help you can give!