I’m developing a database for a fundraising event.
I have a table for a profile of the donor (tblProfile) and another table for multiple donations this donor may give (tblDonations). One-to-many relationship.
My edit the profile form (frmEditDonorProfile) shows the donor (with all the profile data) and has a subform at the bottom which list all the donations made by this donor (subfrmDonations).
I have a delete command button at the top of frmEditDonorProfile, but I don’t want this delete code to execute if there are donation records in the subform.
How would I do this with a MsgBox coming up giving directions to the user? Of course if there are no records in the subform I’d like the user to be able to delete the donor record.
Any suggestions would be appreciated.
I have a table for a profile of the donor (tblProfile) and another table for multiple donations this donor may give (tblDonations). One-to-many relationship.
My edit the profile form (frmEditDonorProfile) shows the donor (with all the profile data) and has a subform at the bottom which list all the donations made by this donor (subfrmDonations).
I have a delete command button at the top of frmEditDonorProfile, but I don’t want this delete code to execute if there are donation records in the subform.
How would I do this with a MsgBox coming up giving directions to the user? Of course if there are no records in the subform I’d like the user to be able to delete the donor record.
Any suggestions would be appreciated.