G
Guest
I have a form based on table 'Evidence' with fields 'ReportNo', 'GroupNo',
'Year', and 'ItemNo'. All items are entered based on the 'ReportNo'.
Occasionally, two or more ReportNo's are related cases and are given the same
'GroupNo". The 'GroupNo' starts with "0001" on Jan. 1 and increases
sequentially throughout the year. The 'year' is the year that the report
number is assigned. The 'ItemNo' is simply a sequential number based on the
'ReportNo'. This database originated on DBaseIII in 1987 and is now being
used in Access 2003 so it's kind of late to change the design.
The first entry on the form is the 'ReportNo'. I then need Access to
determine if there is already a 'GroupNo' assigned and automatically enter it
if it is. If there is no 'GroupNo' assigned, I need Access to determine the
next sequential 'GroupNo' and enter that. To make matters more difficult,
'Year' is a separate field which also needs to be entered. For example, if I
enter a new ReportNo "05-34535" then Access should assign the next unused
GroupNo "2384", the Year "05", and the ItemNo "1". In addition, when another
item is entered for ReportNo "05-34535" then Access should assign GroupNo
"2384", Year "05", and ItemNo "2". If I then enter a new ReportNo
"05-34665", but need to assign it to GroupNo "2384", Year "05", then Access
would allow me to enter that and the ItemNo would be "1".
I have tried for three weeks using references from the discussion threads
but I can't find the solution. Thank you.
'Year', and 'ItemNo'. All items are entered based on the 'ReportNo'.
Occasionally, two or more ReportNo's are related cases and are given the same
'GroupNo". The 'GroupNo' starts with "0001" on Jan. 1 and increases
sequentially throughout the year. The 'year' is the year that the report
number is assigned. The 'ItemNo' is simply a sequential number based on the
'ReportNo'. This database originated on DBaseIII in 1987 and is now being
used in Access 2003 so it's kind of late to change the design.
The first entry on the form is the 'ReportNo'. I then need Access to
determine if there is already a 'GroupNo' assigned and automatically enter it
if it is. If there is no 'GroupNo' assigned, I need Access to determine the
next sequential 'GroupNo' and enter that. To make matters more difficult,
'Year' is a separate field which also needs to be entered. For example, if I
enter a new ReportNo "05-34535" then Access should assign the next unused
GroupNo "2384", the Year "05", and the ItemNo "1". In addition, when another
item is entered for ReportNo "05-34535" then Access should assign GroupNo
"2384", Year "05", and ItemNo "2". If I then enter a new ReportNo
"05-34665", but need to assign it to GroupNo "2384", Year "05", then Access
would allow me to enter that and the ItemNo would be "1".
I have tried for three weeks using references from the discussion threads
but I can't find the solution. Thank you.