R
R. Daniel Carlson
I have 2 tables.
One table (table A) stores data about donors who have given over 100
dollars. This table is purged and new data is imported into it at least
twice a month. There are several fields in the form (FORM A) I use, most of
them are not editible, but there are a few that are - so donor callers can
leave simple notes about their phone converstaions, etc. One of the fields
is called REC_DONOR_ID.
The other table (table B) has only a few fields. One field stores comments
that the donor callers can leave about a donor, the other field is the DONOR
ID field. This table NEVER gets deleted.
Whenever the REC_DONOR_ID field in table A above has a corresponding record
in table B (based on DONOR ID), the button control I added to the form will
filter, a new form will pop up, and only those records from table B will show
(the comments about that particular donor). This works great. If the donor
caller would like to leave a new comment, they can simply type in the DONOR
ID and the comment.
I currently have no relationships between these two tables setup.
I would like to add one more feature to the form A. What it would do is
this: When there is a comment (or comments) about the donor in table B, the
words "Comments Available" would appear in an unbound text box.
I've tried different approaches...one worked well, but when using it, I
couldn't type in any of the editable fields in form A. I created a
one-to-many relationship between the two tables, and added table B to the
query I use. Again, the text would appear on every record that had
comments...but I couldn't edit, change or save anything in the form.
I realized that, because there could be more than one record in table B that
pertains to more than one record in table A, that a one to many wouldn't
work. So I read up on many-to-many relationships. I couldn't find a good
explaination on how this relationship works, so I gave up.
Does anyone have good way for me to make this work? The main reason I have
2 tables is because I want the donor comments to be around forever, and I
expect that there will be more than one entry for each donor....not to
mention that donors will appear more than once in the donor table. Is a
many-to many relationship the way to go? Is there some VB code that could do
the trick just as well??
One table (table A) stores data about donors who have given over 100
dollars. This table is purged and new data is imported into it at least
twice a month. There are several fields in the form (FORM A) I use, most of
them are not editible, but there are a few that are - so donor callers can
leave simple notes about their phone converstaions, etc. One of the fields
is called REC_DONOR_ID.
The other table (table B) has only a few fields. One field stores comments
that the donor callers can leave about a donor, the other field is the DONOR
ID field. This table NEVER gets deleted.
Whenever the REC_DONOR_ID field in table A above has a corresponding record
in table B (based on DONOR ID), the button control I added to the form will
filter, a new form will pop up, and only those records from table B will show
(the comments about that particular donor). This works great. If the donor
caller would like to leave a new comment, they can simply type in the DONOR
ID and the comment.
I currently have no relationships between these two tables setup.
I would like to add one more feature to the form A. What it would do is
this: When there is a comment (or comments) about the donor in table B, the
words "Comments Available" would appear in an unbound text box.
I've tried different approaches...one worked well, but when using it, I
couldn't type in any of the editable fields in form A. I created a
one-to-many relationship between the two tables, and added table B to the
query I use. Again, the text would appear on every record that had
comments...but I couldn't edit, change or save anything in the form.
I realized that, because there could be more than one record in table B that
pertains to more than one record in table A, that a one to many wouldn't
work. So I read up on many-to-many relationships. I couldn't find a good
explaination on how this relationship works, so I gave up.
Does anyone have good way for me to make this work? The main reason I have
2 tables is because I want the donor comments to be around forever, and I
expect that there will be more than one entry for each donor....not to
mention that donors will appear more than once in the donor table. Is a
many-to many relationship the way to go? Is there some VB code that could do
the trick just as well??