F
Frank Situmorang
Hello,
Since a multifield primary key is more comlicated to use, therefore I plan
to have a surrogate/ 1field PK, but with the automatic fill by the VBA as
follows
1. 2 first digit will be Division ID
2. 2 next digits will be Union ID
3. 2 Next digits will be Regional ID
4. 3. Next digits will be Church ID
5. the rest will be increment by 1
So if my church has the following hierarcchy:
DvisionID: 1
Union ID : 2
Regional ID:3
ChruchID ID;4
Household/AddressID: incrment by 1, this is the first record.
What is the VBA if I would like it to show up like this:
01_02_03_004_1
I apreciate your help
Since a multifield primary key is more comlicated to use, therefore I plan
to have a surrogate/ 1field PK, but with the automatic fill by the VBA as
follows
1. 2 first digit will be Division ID
2. 2 next digits will be Union ID
3. 2 Next digits will be Regional ID
4. 3. Next digits will be Church ID
5. the rest will be increment by 1
So if my church has the following hierarcchy:
DvisionID: 1
Union ID : 2
Regional ID:3
ChruchID ID;4
Household/AddressID: incrment by 1, this is the first record.
What is the VBA if I would like it to show up like this:
01_02_03_004_1
I apreciate your help