Thanks Klatuu for your willingness to help me. This will be a great blessing
to our churches if I can make it. The standalone database is OK now, but when
I want to develop it to the wider scope, I have a problem with PK when
consolidated.
Maybe I need to give you more info on my query herere that can produce a
report in sorting order by Chruch, Regional, Union, and Division ( from
lowest to higher office). For your info:
1. bukuangkby is my member table
2. KbyAngAlamat is my address table
3. tblChurchname is church table
4. tblMissionname is Regional table
5. tblUnionname is Union table
6. tblDivisionname is Division table
and the last which the world level is tblGCname, although maybe not required
(because only 1 General Conference Office, but we better make it for future
development in case we need to combine with the other denomination let say
Presbytarian.
In each lower level table has the FK of the PK the higher office table in
order to enable us to make a report by level.
Here is my Query in SQL view:
SELECT tblGCname_1.GCid, tblGCname_1.GCName, tblDivisionname.DCid,
tblDivisionname.DivisionName, tblDivisionname.GC_id, tblUnionname.UCid,
tblUnionname.[Union Name], tblUnionname.DC_id, tblMissionname.MCid,
tblMissionname.[Mission Name], tblMissionname.UC_id, tblChurchname.Church_id,
tblChurchname.ChurchName, tblChurchname.MC_id, bukuangkby.Selec,
IIf([Selec]=True,Date(),Null) AS DateSelect, bukuangkby.Dear,
bukuangkby.NO_URTANGT, bukuangkby.STAT_CODE, bukuangkby.NOIN, [FNAME] & " " &
[MNAME] & " " & [LNAME] AS FullName, bukuangkby.NICKNAME, bukuangkby.FNAME,
bukuangkby.MNAME, bukuangkby.LNAME, bukuangkby.JenisKel,
bukuangkby.EmailAddress, bukuangkby.MobilPhone, bukuangkby.MobilPhone2,
bukuangkby.TGLLAHIR, bukuangkby.TEMPTLAHIR, bukuangkby.Addrs_ID,
KbyAngAlamat.HOUSEHOLDNAME, KbyAngAlamat.RADDRESS1, KbyAngAlamat.RADDRESS2,
KbyAngAlamat.RADDRESS3, KbyAngAlamat.RKODEPOS, KbyAngAlamat.No_Fax,
KbyAngAlamat.RTELP, KbyAngAlamat.RTELP2, bukuangkby.Imagepath,
bukuangkby.HLMNKEP_M, bukuangkby.TGLBPTIS_M, bukuangkby.BAPTSOLH_M,
bukuangkby.ATASSURT_M, bukuangkby.ASAL1, bukuangkby.TGL_pen,
bukuangkby.ATSPERCA_M, bukuangkby.ASAL2, bukuangkby.HLMNKEP_K,
bukuangkby.ATSSUR1_K, bukuangkby.PINDHKE_K, bukuangkby.ATSSUR2_K,
bukuangkby.KMATIAN_K, bukuangkby.KELMURT_K, bukuangkby.KETMURT_K,
bukuangkby.KELHILA_K, bukuangkby.KETHILA_K, bukuangkby.Role, bukuangkby.Note,
bukuangkby.IDGereja, *
FROM tblGCname AS tblGCname_1 RIGHT JOIN (tblDivisionname RIGHT JOIN
(tblUnionname RIGHT JOIN (tblMissionname RIGHT JOIN (tblChurchname RIGHT JOIN
(KbyAngAlamat RIGHT JOIN bukuangkby ON KbyAngAlamat.AddresID =
bukuangkby.Addrs_ID) ON tblChurchname.Church_id = bukuangkby.IDGereja) ON
tblMissionname.MCid = tblChurchname.MC_id) ON tblUnionname.UCid =
tblMissionname.UC_id) ON tblDivisionname.DCid = tblUnionname.DC_id) ON
tblGCname_1.GCid = tblDivisionname.GC_id
WHERE (((bukuangkby.NOIN)>0))
ORDER BY bukuangkby.NO_URTANGT, bukuangkby.Addrs_ID, bukuangkby.Role;
Thanks a lot in advance