Hi everyone,
I need to create a database as part of my internship with my church. We want to create a database of church contacts and what congregations they serve at. It has three tables:
- Church details (address, etc.)
- Contact details (address, etc.)
- Contact-Congregation relations
The first two tables have churchID and contactID fields respectively (the key fields). The third table has a relationID field, then churchID and contactID fields linked to the first two tables, along with the roles the contact plays at the particular church.
I've created two forms to add new Church details or Contact details respectively, so I abide by the golden rule to never edit the table directly. However, I'd also like to create a third form, to add entries to the Relations table, with the following properties:
- Instead of entering the ChurchID into the Relations form, I'd like to have a dropdown box containing all existing churches. The entries in the dropdown box should be sorted alphabetically, with the following string: "[Church_Name], [Church_Suburb]". Such a string would uniquely identify the particular Church.
- Instead of entering the ContactID into the Relations form, I'd like to have a dropdown box containing all existing contacts. The entries in the dropdown box should be sorted alphabetically, with the following string: "[Title] [First_Name] [Middle_Name] [Last_Name]". Such a string shoul uniquely identify the particular Contact.
- Entries added on the Relations form can only add entries to the Relations table, not the Contacts or Churches table.
So far, I have created a Relations query which gives me the contact name, the church name, and the roles. I have also created a Relations form which allows me to add new entries to the Relations table, but it still has the ability to add new entries to the Contacts or Churches table, which I do not want. I also don't know how to create the dropdown boxes I specified above.
Any help would be greatly appreciated.
Thankyou!
God bless,
Andy.