yes, you can run an Append query. and you can do it without actually linking
the table from the other db into your SunUSA db. see the following syntax,
as
INSERT into frtbill ( Field1, Field2, Field3 ) SELECT Field1, Field2, Field3
FROM [;Database=C:\FolderName\db1.mdb].frtbill;
the first reference to table frtbill refers to the local table in SunUSA db.
inside the parentheses, list each field that will receive data from the
outside table, and note the spaces between the first/last field names and
each parens. in the SELECT section of the statement, list each corresponding
field from the outside table that will dump into the local table. note that
the field names between the two tables do not have to match, neither do the
table names for that matter. just keep in mind that the fields will match up
in order - the first field listed from the local table will receive the data
from the first field listed from the outside table, 2nd field local gets
data from 2nd field outside table, etc. inside the FROM section brackets,
after the = sign, include the full filepath to the outside database. if you
need to append only certain records from the outside table into the local
table, add a WHERE clause on the end; for example:
INSERT into frtbill ( Field1, Field2, Field3 ) SELECT Field1, Field2, Field3
FROM [;Database=C:\FolderName\db1.mdb].frtbill WHERE Field2 = "x";
hth
i have a frtbill table in a new database called as db1. i get this
database from an external organization. I want to append this frtbill
table into another table also called as frtbill in my existing
database SunUSA. Is there any query that i can run which can do this
append operation. I donot want the users to go into design view and do
append operations. is there a sql query which can do the append .Thanks-
Hide quoted text -
- Show quoted text -