G
Guest
Hi
I would appreciate it could you please help me how to create an code so that
the number is generated automatically base on the selection as below.
There are three tables.
Table 1: Project Table
ProjectID: YNA0000
Section: N
AuditType:A
Table 2: Section
Section: N,O, P
Table 3: AuditType
AuditType: A, B, C
I want the system to automatic generate the last three number base on the
selection of AuditType and Section.
ProjectID: YNA000 where Y = 6 of the year 2006, N = Section number, A =
Audit Type number, 000 is the next available number in this range.
Eg, If I select Section = O and AuditType = B then the ProjectID = YOB0001
or YOB0002,
Then If I select Section= N and AuditType = A then the Project ID = YNA0001
or YNA0002, YNA0003 etc.
Thank you very much for your help.
Regards
Hong
I would appreciate it could you please help me how to create an code so that
the number is generated automatically base on the selection as below.
There are three tables.
Table 1: Project Table
ProjectID: YNA0000
Section: N
AuditType:A
Table 2: Section
Section: N,O, P
Table 3: AuditType
AuditType: A, B, C
I want the system to automatic generate the last three number base on the
selection of AuditType and Section.
ProjectID: YNA000 where Y = 6 of the year 2006, N = Section number, A =
Audit Type number, 000 is the next available number in this range.
Eg, If I select Section = O and AuditType = B then the ProjectID = YOB0001
or YOB0002,
Then If I select Section= N and AuditType = A then the Project ID = YNA0001
or YNA0002, YNA0003 etc.
Thank you very much for your help.
Regards
Hong