First all the background to get to the Questions:
I am working on a database for a charity that I am on the Board of, Three Trees, to track families that participate in our programs and donors that provide us with support. I have a Main Table (IndContacts) where I store all contact information for everyone (Names, address, phone, e-mail, etc.) In the same table, I have two Yes/No Fields: Donor and Family. We store a lot more infomraion about families (childrens names, etc.) than we do about donors so I have another table for family information and I have a table called "IndDonations" where I record all donations for people whose names appear in the IndContacts table. The IndDonationas table is linked to the IndContacts table by the primary key (auto-generated number) in the IndContacts table. The IndDonations table also has its own Primary Key which is basically used to track Receipts (and called "Receipt_Number").
I use a form to enter donations which pulls down a combo box with last name first name for everyone in the IndContacts database and therefore only lets you enter donations for people that are already in the IndContacts table. You enter a donation_date, Donation_amount, Donation_type (all from the IndDonation Table).
What I want is to know how to write a command to cause the Donor box in the IndContacts table to be True (checked) whenever a donation is entered for someone. So for example, when I type in a donation amount, it automativcally sets the Donor box to yes in the other table. Everything I try to do gives me error messages and does not check the box Yes (like this message: "The current filed must match the join key '?' in the table that serves as the 'one' side of the one to many relationship. Enter a record with the desired key value and then make the entery with the desired join key in the many-only table." ) The two tables are joined in a One to Many join (one contact to many donations).
My problem is I am very new at this. maybe I am trying to do things wrong in my design, but I will need to do something similar to check a yes/no box as Yes whenever I run a report for "IndDonations" to generate receipts -- the yes/no for the "Receipt_Generated" filed will need to set to Yes whenver the report is run (for all that are in the report) so that we know receipts have bene generated.
I am working on a database for a charity that I am on the Board of, Three Trees, to track families that participate in our programs and donors that provide us with support. I have a Main Table (IndContacts) where I store all contact information for everyone (Names, address, phone, e-mail, etc.) In the same table, I have two Yes/No Fields: Donor and Family. We store a lot more infomraion about families (childrens names, etc.) than we do about donors so I have another table for family information and I have a table called "IndDonations" where I record all donations for people whose names appear in the IndContacts table. The IndDonationas table is linked to the IndContacts table by the primary key (auto-generated number) in the IndContacts table. The IndDonations table also has its own Primary Key which is basically used to track Receipts (and called "Receipt_Number").
I use a form to enter donations which pulls down a combo box with last name first name for everyone in the IndContacts database and therefore only lets you enter donations for people that are already in the IndContacts table. You enter a donation_date, Donation_amount, Donation_type (all from the IndDonation Table).
What I want is to know how to write a command to cause the Donor box in the IndContacts table to be True (checked) whenever a donation is entered for someone. So for example, when I type in a donation amount, it automativcally sets the Donor box to yes in the other table. Everything I try to do gives me error messages and does not check the box Yes (like this message: "The current filed must match the join key '?' in the table that serves as the 'one' side of the one to many relationship. Enter a record with the desired key value and then make the entery with the desired join key in the many-only table." ) The two tables are joined in a One to Many join (one contact to many donations).
My problem is I am very new at this. maybe I am trying to do things wrong in my design, but I will need to do something similar to check a yes/no box as Yes whenever I run a report for "IndDonations" to generate receipts -- the yes/no for the "Receipt_Generated" filed will need to set to Yes whenver the report is run (for all that are in the report) so that we know receipts have bene generated.
Last edited: