Chey,
Well, there is a problem here. The Child Care Providers table is sort
of the "master table" of providers, right? And each Provider has a
Vendor Number associated with it, right? And this Vendor Number is
unique to the Provider, right? And the Vendor Number is the basis of
what relates the Provider to both the Grant Completions and to the
Providers Comments, right. So in this case, there should be no records
in the Grant Completion table or the Providers Comments table which do
not have an associated Provider in the Child Care Providers table. In
fact, it makes no sense at all for there to be such records, because you
are unable to identify which Provider they belong to, because the
Provider does not exist in the database. They are "orphan" records.
You might as well delete them, because they are of no use, as far as I
can see.
You can identify these records like this...
- Make a query that includes both the Child Care Providers table and
the Grant Completion table, and join them on the Vendor Number field
from both
- double-click on the join line between the tables and select the
option that says "all records in Grant Completion and matching Child
Care Providers records"
- enter the Vendor Number field from both tables to the query design grid
- in the criteria of the Vendor Number from Child Care Providers,
enter Is Null
- run the query (click the toolbar button with the red [!] icon)
This should identify the Grant Completion records that do not have a
corresponding Provider, so you can delete them, or otherwise decide what
to do.
Repeat the above process with the Providers Comments.
--
Steve Schapel, Microsoft Access MVP
well I made sure that my primary table-Providers could not have any
duplicates. When I do the one to many it tells me I can't do it. It gives
an example that there is information in my other tables that are not in my
primary table. Is there away around that. I don't want to delete any
information in my other tables. If I have to delete information, what is the
best way to find out what doesent belong?