H
h2fcell
Hello,
I’m new to Access 2007 and would like some expert advice on how to
accomplish a task. I have a form I’m using to enter meeting summaries into a
table. I give each meeting a unique ID consisting of the year part of the
date the meeting took place followed by a hyphen and a unique number.
Like
2009-1
2009-2
2009-3
2010-4
2009-5
2010-6
I use the following expression in a query to build that meeting ID
MeetingID: DatePart("yyyy",[MeetingDate]) & "-" & [ID]
I currently have the unique number ID created using the “Default Valueâ€
=Nz(DMax("[ID]","Table1"),0)+1
But, I need to have the ID begin at 1 for every different year. Eventually
my MeetingID list should look like the below:
2009-1
2009-2
2009-3
2008-1
2010-1
2008-2
2009-4
2010-2….
Any suggestions are welcomed.
I’m new to Access 2007 and would like some expert advice on how to
accomplish a task. I have a form I’m using to enter meeting summaries into a
table. I give each meeting a unique ID consisting of the year part of the
date the meeting took place followed by a hyphen and a unique number.
Like
2009-1
2009-2
2009-3
2010-4
2009-5
2010-6
I use the following expression in a query to build that meeting ID
MeetingID: DatePart("yyyy",[MeetingDate]) & "-" & [ID]
I currently have the unique number ID created using the “Default Valueâ€
=Nz(DMax("[ID]","Table1"),0)+1
But, I need to have the ID begin at 1 for every different year. Eventually
my MeetingID list should look like the below:
2009-1
2009-2
2009-3
2008-1
2010-1
2008-2
2009-4
2010-2….
Any suggestions are welcomed.