khicon73
MIS
- Jan 10, 2008
- 36
Hello all
I have a form and a subform, link by the CollectedID
for example: on the form
I have CollectedID: 2008-VKGS-65656
subform:
CollectedID ConfirmedID
2008-VKGS-65656 T00005
2008-VKGS-65656 T00006
2008-VKGS-65656 T00007
all data stored in a table named tblCollectedData. First four number of CollectedID is the year.
Each year the confirmedID started with T00001...to T99999. You can not have the confirmedID duplicated during that year. For instance, year 2007 ....ConfirmedID; T00005, T00006 and year 2008 ....ConfirmedID:T00005, T00006, etc...it is OK. But year 2008 cannot have T00005 twice.
So please help with the code, thanks alots.
I have a form and a subform, link by the CollectedID
for example: on the form
I have CollectedID: 2008-VKGS-65656
subform:
CollectedID ConfirmedID
2008-VKGS-65656 T00005
2008-VKGS-65656 T00006
2008-VKGS-65656 T00007
all data stored in a table named tblCollectedData. First four number of CollectedID is the year.
Each year the confirmedID started with T00001...to T99999. You can not have the confirmedID duplicated during that year. For instance, year 2007 ....ConfirmedID; T00005, T00006 and year 2008 ....ConfirmedID:T00005, T00006, etc...it is OK. But year 2008 cannot have T00005 twice.
So please help with the code, thanks alots.