L
Llyllyll
Thanks to all who replied to my question 'Using Min & Max in combined SQL
statements' yesterday. I went with PC Datasheet's solution and it worked a
treat. Could I ask something else?
For various reasons I have a custom autonumber control who's default value
is set to
'=IIf(DMax("ConsecNo","tblConsec")<1,1,DMax("ConsecNo","tblConsec")+1)'
which works fine, I now need to set another autonumber (Certificate) that
only increments per batch of records i.e. in tblConsec I have four records
for company 'MyCompany' allocated to 2001, 2002, 2003, 2004. These records
are allocated consecutive number 1-4 respectively. I need the certificate
autonumber to remain the same for these four records and only increase by
one when a new company is selected.
Thanks once again,
L
statements' yesterday. I went with PC Datasheet's solution and it worked a
treat. Could I ask something else?
For various reasons I have a custom autonumber control who's default value
is set to
'=IIf(DMax("ConsecNo","tblConsec")<1,1,DMax("ConsecNo","tblConsec")+1)'
which works fine, I now need to set another autonumber (Certificate) that
only increments per batch of records i.e. in tblConsec I have four records
for company 'MyCompany' allocated to 2001, 2002, 2003, 2004. These records
are allocated consecutive number 1-4 respectively. I need the certificate
autonumber to remain the same for these four records and only increase by
one when a new company is selected.
Thanks once again,
L