B
bcbrock
I am linking into some DBIV databases and I've run into a snag.
Here's the situation...
I work in a School District, and we employ a program (SASI) that uses
DBIV databases to house student information. Each school has their
own server, and their own dedicated copies of the databases.
Overnight, those databases are copied to a central server where they
are consolidated into one database.
The databases contain a field called "stulink" which acts as a primary
key in SASI, although if you open the database in Access, there is no
primary key identified. When the individual databases are
consolidated into one big file, I wind up with several records where
the stulink field is duplicated - a single record for each of the
schools. SASI is able to distinguish the records in the consolidated
file with another field called SchoolNum. So, my file may look like:
stulink | SchoolNum | FirstName | LastName |
1 | 109 | Tom | Smith |
1 | 218 | Janice | Jones |
1 | 461 | Jimmy | Jenkins |
I am now trying to match records from a second table which also has
both the stulink and schoolnum fields, but I think I must be doing
something wrong. My currently defined relationships:
ASTU:Stulink <-- one to many -> AIMM:Stulink
ASTU: SchoolNum <- one to many -> AIMM:SchoolNum
When I create my query, I can get all the records that have the
stulink in common to group together, but I've been unsuccessful in
getting the schoolnum fields to match up at the same time. So,
instead of matching only those records from AIMM that belong to the
stulink AND schoolnum, I'm getting records that match the stulink
field only, regardless of which schoolnum is indicated in AIMM.
Any suggestions???
Here's the situation...
I work in a School District, and we employ a program (SASI) that uses
DBIV databases to house student information. Each school has their
own server, and their own dedicated copies of the databases.
Overnight, those databases are copied to a central server where they
are consolidated into one database.
The databases contain a field called "stulink" which acts as a primary
key in SASI, although if you open the database in Access, there is no
primary key identified. When the individual databases are
consolidated into one big file, I wind up with several records where
the stulink field is duplicated - a single record for each of the
schools. SASI is able to distinguish the records in the consolidated
file with another field called SchoolNum. So, my file may look like:
stulink | SchoolNum | FirstName | LastName |
1 | 109 | Tom | Smith |
1 | 218 | Janice | Jones |
1 | 461 | Jimmy | Jenkins |
I am now trying to match records from a second table which also has
both the stulink and schoolnum fields, but I think I must be doing
something wrong. My currently defined relationships:
ASTU:Stulink <-- one to many -> AIMM:Stulink
ASTU: SchoolNum <- one to many -> AIMM:SchoolNum
When I create my query, I can get all the records that have the
stulink in common to group together, but I've been unsuccessful in
getting the schoolnum fields to match up at the same time. So,
instead of matching only those records from AIMM that belong to the
stulink AND schoolnum, I'm getting records that match the stulink
field only, regardless of which schoolnum is indicated in AIMM.
Any suggestions???