J
Jamie
hi newsgroup, can any one offer some advise?
I am trying to create a conditional append query along the following
logical manner:
INSERT INTO TableB
FROM TableA
WHERE TableB.Field2 <> TableA.Field2
The two fields I am comparing contain a reference number that isn't
unique (i.e. 10 records with same Field2 number. but different values
in the other fields). I want to append all the contents of Table1 that
have a Field2 value NOT found in TableB.
I am confused as to how I manage this without dropping any records
from TableA , i.e. duplicated Field2.
I tried a query in the format of the example above and Access prompts
me to enter a single Field2 value. I would like the Append query
condition to compare the tables rather than prompt for a variable.
Sorry if this is a bit confusing. I started reading about no
duplicates constraints, but I wasn't sure if that would apply only to
the conditional part of the statement, I need all the new records to
be appended even if they have duplicate (but NEW) Field2 values.
Any help or advise will be greatly appreciated.
Jamie
I am trying to create a conditional append query along the following
logical manner:
INSERT INTO TableB
FROM TableA
WHERE TableB.Field2 <> TableA.Field2
The two fields I am comparing contain a reference number that isn't
unique (i.e. 10 records with same Field2 number. but different values
in the other fields). I want to append all the contents of Table1 that
have a Field2 value NOT found in TableB.
I am confused as to how I manage this without dropping any records
from TableA , i.e. duplicated Field2.
I tried a query in the format of the example above and Access prompts
me to enter a single Field2 value. I would like the Append query
condition to compare the tables rather than prompt for a variable.
Sorry if this is a bit confusing. I started reading about no
duplicates constraints, but I wasn't sure if that would apply only to
the conditional part of the statement, I need all the new records to
be appended even if they have duplicate (but NEW) Field2 values.
Any help or advise will be greatly appreciated.
Jamie