J
jack R via AccessMonster.com
What is best way to accomplish this -
I start with two Excel spreedsheets which I import into Access tables - Named
DIV - which has many records of persons not in the other TABLE - You can
think of this table as a DIVISION in the ARMY (Has a field named SOURCE and
all these records have DIV in this TABLE)
SLBOR - Where everyone in this table is also in DIV but there are many in DIV
that are not part of this - Like A battlaion in the army (SLBOR contains
names of persons in many different companies) - (Has a field named BOARD and
all these records have SLBOR in this TABLE)
I combined these tables into one table called COMBINED -- Is this right or is
this my first mistake.
What I need to do is find a Query (SQL Statement basically) that will
retrive/find records in the Combined Table that have:
Where it finds records with (EXAMPLE)
Records may be -
Last name First Name License ID SOURCE BOARD Address Company
Price, Jack, NM 123894,
SLBOR, 123 St, Jones Assoc
Price, Jack, 34521SA01, DIV,
The same Last name (Price) and First name (Jack) and DIV (In Source field)
and
The same Last name (Price) and First name (Jack) and SLBOR (In Board field),
but
the Field License ID do not match
And Will Not pull records that have the same license ID or where the records
with SOURCE DIV do not have a match in BOARD SLBOR Since there are many
persons in DIV orginal Spreedsheet that are not members of SLBOR
I am willing to restructure or what ever to make this work..
Please help... I can send part of the actual EXCEL Sheets, Access tables,
DBASE whatever to anyone who is willing to help with this.
I start with two Excel spreedsheets which I import into Access tables - Named
DIV - which has many records of persons not in the other TABLE - You can
think of this table as a DIVISION in the ARMY (Has a field named SOURCE and
all these records have DIV in this TABLE)
SLBOR - Where everyone in this table is also in DIV but there are many in DIV
that are not part of this - Like A battlaion in the army (SLBOR contains
names of persons in many different companies) - (Has a field named BOARD and
all these records have SLBOR in this TABLE)
I combined these tables into one table called COMBINED -- Is this right or is
this my first mistake.
What I need to do is find a Query (SQL Statement basically) that will
retrive/find records in the Combined Table that have:
Where it finds records with (EXAMPLE)
Records may be -
Last name First Name License ID SOURCE BOARD Address Company
Price, Jack, NM 123894,
SLBOR, 123 St, Jones Assoc
Price, Jack, 34521SA01, DIV,
The same Last name (Price) and First name (Jack) and DIV (In Source field)
and
The same Last name (Price) and First name (Jack) and SLBOR (In Board field),
but
the Field License ID do not match
And Will Not pull records that have the same license ID or where the records
with SOURCE DIV do not have a match in BOARD SLBOR Since there are many
persons in DIV orginal Spreedsheet that are not members of SLBOR
I am willing to restructure or what ever to make this work..
Please help... I can send part of the actual EXCEL Sheets, Access tables,
DBASE whatever to anyone who is willing to help with this.