C
Carl
Each of my two tables has the same data except the last
five fields which are different. I'm simply trying to
combine the tables for a Report by joining the two tables
in a Query.
Unfortunately, the order of the tables is different, and I
need to use an auto-numbered field/Primary key because
there are duplicates of similar data, but Access re-sorts
the data in an uncomprehensible way when adding an
autonumbered field. The use of this auto-numbered field
as a Primary key or not, seems to make no difference, but
I'm not sure.
More specifically, I have a Customer Code (CC) field and a
policy number (PN) field that are common to both Tables.
In some cases there are multiple instances of the same CC
and PN, so there are not unique records except the un-
common data in the two tables. The data was exported from
client software and multiple customer records are
generated whenever more than one policy number is
present. The good news is that both tables have the same
number of records and can be matched up by sorting and
saving the tables. This seems to provide good enough
accuracy for my purposes since the exporting seems to keep
the PN record order the same in both Tables when a similar
CC is found, even though some CC's are in a different
order in the Tables. Since I need to use something like a
autonumbered field to provide unique records and have it
report correctly, incorrect sort order messes up the
data. If I import and have Access assign a primary key,
wrong data shows up since the sort order is wrong. If I
sort the Tables so they match, save them, then add a
autonumbered field, Access somehow automatically resorts
the Table before adding the auto-numbered field, even
though it is quite close. Help!
Example:
Table Order CC PN Unique Table Data
Table A SmithJ 100 $123.00
Table A SmithJ 100 $456.00
Table B SmithJ 100 Lowest Dollar Amt
Table B SmithJ 100 Highest Dollar Amt
Adding auto-numbered field might automatically switch the
last two fields, so that Query results show:
SmithJ 100 $123.00 Highest Dollar Amt
SmithJ 100 $456.00 Lowest Dollar Amt
five fields which are different. I'm simply trying to
combine the tables for a Report by joining the two tables
in a Query.
Unfortunately, the order of the tables is different, and I
need to use an auto-numbered field/Primary key because
there are duplicates of similar data, but Access re-sorts
the data in an uncomprehensible way when adding an
autonumbered field. The use of this auto-numbered field
as a Primary key or not, seems to make no difference, but
I'm not sure.
More specifically, I have a Customer Code (CC) field and a
policy number (PN) field that are common to both Tables.
In some cases there are multiple instances of the same CC
and PN, so there are not unique records except the un-
common data in the two tables. The data was exported from
client software and multiple customer records are
generated whenever more than one policy number is
present. The good news is that both tables have the same
number of records and can be matched up by sorting and
saving the tables. This seems to provide good enough
accuracy for my purposes since the exporting seems to keep
the PN record order the same in both Tables when a similar
CC is found, even though some CC's are in a different
order in the Tables. Since I need to use something like a
autonumbered field to provide unique records and have it
report correctly, incorrect sort order messes up the
data. If I import and have Access assign a primary key,
wrong data shows up since the sort order is wrong. If I
sort the Tables so they match, save them, then add a
autonumbered field, Access somehow automatically resorts
the Table before adding the auto-numbered field, even
though it is quite close. Help!
Example:
Table Order CC PN Unique Table Data
Table A SmithJ 100 $123.00
Table A SmithJ 100 $456.00
Table B SmithJ 100 Lowest Dollar Amt
Table B SmithJ 100 Highest Dollar Amt
Adding auto-numbered field might automatically switch the
last two fields, so that Query results show:
SmithJ 100 $123.00 Highest Dollar Amt
SmithJ 100 $456.00 Lowest Dollar Amt