Hi - I have a field called Sequence on a continuous subform. The Sequence field belongs to a table called Project_Draw. This table has many 'Draw' records for each 'Project' record. So then the subform is tied to the main form by Project_ID.
I want the Sequence field to automatically increment each time I add a new record. I can't use the autonumber as I need to start a new sequence for each new Project_ID.
I've tried putting a max([Sequence]) in the subform's footer and that gives me the max sequence used so far. Then on the Current Record event, I've tried referencing this and adding 1 to it and putting that result in the Sequence field. That works fine if I've come to the record for the first time, but if I'm entering one record after another, the max([Sequence]) field in the footer doesn't seem to refresh in time, so I don't get an incremental value. I've also tried requerying the max field, but again with no luck.
I'm sure there must be an easier way to do this, but I can't figure it out.
Thanks in advance for your help.
Bill