A suggestion... don't combine more than one fact in one field. Your
intention of putting both a "reference number" and a year in the same field
will cause both you and Access heartburn. Instead, use one field per
"fact" -- one field for a reference number, one field for the "year". By
the way, don't call that second field "Year" -- this is a reserved word in
Access and you will only confuse things. Instead, name the field
"ProgramYear" or some such...
Take a look at mvps.org/access (or search Google) for "custom autonumbers".
This is a misnomer, as they are not actually "autonumbers", but the concept
is the same. There's code available that determines the "year" and the
maximum "sequence number" (your reference number I suspect), then adds 1.
--
Regards
Jeff Boyce
Microsoft Office/Access MVP
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/