R
Richard Harison
I really am a better Access programmer than will come across here. I have a
relatively simple problem which for some reason is really stone walling me!
There are 3 tables, a form, and a report involved. So here goes:
The first table is names of volunteers. It is related 1 to 1 (ref. integrity
enforced) to a data table containing phone, address, county etc. The 3rd table
is a record of schedules. Since, besides its own fields, the report requires
the county info from the data table. This schedules table was created before
there was a need for the counties field. I realized I now had to relate the
schedule table to the foreign key in the data table. I created a field in the
schedule table, long integer, indexed duplicates OK, and hand input the correct
key # assigned to the volunteer (and thus also the foreign key for the data
table.) Something like this:
Volunteers Data Schedule
primary key (Vol_ID)----foreign key (Vol_ID) ----foreign key (Vol_ID).
The report runs fine using a query. But two other things happened. I cannot
relate the data and schedule tables using ref. integrity, which might also
explain why the form (which controls the schedules table) will not fill in the
key field (Vol_ID) in the table.
As I said before there is probably a very simple answer, which I am missing.
That ever happen to you!??
relatively simple problem which for some reason is really stone walling me!
There are 3 tables, a form, and a report involved. So here goes:
The first table is names of volunteers. It is related 1 to 1 (ref. integrity
enforced) to a data table containing phone, address, county etc. The 3rd table
is a record of schedules. Since, besides its own fields, the report requires
the county info from the data table. This schedules table was created before
there was a need for the counties field. I realized I now had to relate the
schedule table to the foreign key in the data table. I created a field in the
schedule table, long integer, indexed duplicates OK, and hand input the correct
key # assigned to the volunteer (and thus also the foreign key for the data
table.) Something like this:
Volunteers Data Schedule
primary key (Vol_ID)----foreign key (Vol_ID) ----foreign key (Vol_ID).
The report runs fine using a query. But two other things happened. I cannot
relate the data and schedule tables using ref. integrity, which might also
explain why the form (which controls the schedules table) will not fill in the
key field (Vol_ID) in the table.
As I said before there is probably a very simple answer, which I am missing.
That ever happen to you!??