G
Gravey
I wish to append all records from a linked table to an external
database. I have used both the query design grid and sql statements and
all I get is a error message 'can't append records due to validation
rule violations'
INSERT INTO SFTABLE IN 'S:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.*
FROM SFTable;
If I include all feild names in the sql statement, the same result. If
I import the source table instead of it being linked, I get same, If I
shorten the feild names both source and destination tables I get same
(thinking character limitations in sql statement?)
INSERT INTO SFTable ( RECORDTYPE, FROMLOC, TOLOCATION, MATERIAL, BATCH,
SERIALNUM, QUANTITY, WEIGHT, DATESTAMP, [TIMESTAMP], DELIVERY, SORTKEY,
FILENAME, STATUS, PHYSICALOC, ORDERNUM, LINEITEM, STOCKIND ) IN
's:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.RECORDTYPE, SFTable.FROMLOC, SFTable.TOLOCATION,
SFTable.MATERIAL, SFTable.BATCH, SFTable.SERIALNUM, SFTable.QUANTITY,
SFTable.WEIGHT, SFTable.DATESTAMP, SFTable.TIMESTAMP, SFTable.DELIVERY,
SFTable.SORTKEY, SFTable.FILENAME, SFTable.STATUS, SFTable.PHYSICALOC,
SFTable.ORDERNUM, SFTable.LINEITEM, SFTable.STOCKIND
FROM SFTable;
But if I delete 8 feilds to total of ten it works.
INSERT INTO SFTable ( RECORDTYPE, FROMLOC, TOLOCATION, MATERIAL, BATCH,
SERIALNUM, QUANTITY, WEIGHT, DATESTAMP, [TIMESTAMP] ) IN
's:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.RECORDTYPE, SFTable.FROMLOC, SFTable.TOLOCATION,
SFTable.MATERIAL, SFTable.BATCH, SFTable.SERIALNUM, SFTable.QUANTITY,
SFTable.WEIGHT, SFTable.DATESTAMP, SFTable.TIMESTAMP
FROM SFTable;
Is there a way to append all feilds?
And why does it put brackets around the timestamp, all feilds are text
except quantity.
+----------------------------------------------------------------+
| Attachment filename: can\'t append records.gif |
|Download attachment: http://www.MSAccessForum.com.com/forums/attachment.php?postid=159755|
+----------------------------------------------------------------+
database. I have used both the query design grid and sql statements and
all I get is a error message 'can't append records due to validation
rule violations'
INSERT INTO SFTABLE IN 'S:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.*
FROM SFTable;
If I include all feild names in the sql statement, the same result. If
I import the source table instead of it being linked, I get same, If I
shorten the feild names both source and destination tables I get same
(thinking character limitations in sql statement?)
INSERT INTO SFTable ( RECORDTYPE, FROMLOC, TOLOCATION, MATERIAL, BATCH,
SERIALNUM, QUANTITY, WEIGHT, DATESTAMP, [TIMESTAMP], DELIVERY, SORTKEY,
FILENAME, STATUS, PHYSICALOC, ORDERNUM, LINEITEM, STOCKIND ) IN
's:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.RECORDTYPE, SFTable.FROMLOC, SFTable.TOLOCATION,
SFTable.MATERIAL, SFTable.BATCH, SFTable.SERIALNUM, SFTable.QUANTITY,
SFTable.WEIGHT, SFTable.DATESTAMP, SFTable.TIMESTAMP, SFTable.DELIVERY,
SFTable.SORTKEY, SFTable.FILENAME, SFTable.STATUS, SFTable.PHYSICALOC,
SFTable.ORDERNUM, SFTable.LINEITEM, SFTable.STOCKIND
FROM SFTable;
But if I delete 8 feilds to total of ten it works.
INSERT INTO SFTable ( RECORDTYPE, FROMLOC, TOLOCATION, MATERIAL, BATCH,
SERIALNUM, QUANTITY, WEIGHT, DATESTAMP, [TIMESTAMP] ) IN
's:\dept_warehouse\scans\scans.mdb'
SELECT SFTable.RECORDTYPE, SFTable.FROMLOC, SFTable.TOLOCATION,
SFTable.MATERIAL, SFTable.BATCH, SFTable.SERIALNUM, SFTable.QUANTITY,
SFTable.WEIGHT, SFTable.DATESTAMP, SFTable.TIMESTAMP
FROM SFTable;
Is there a way to append all feilds?
And why does it put brackets around the timestamp, all feilds are text
except quantity.
+----------------------------------------------------------------+
| Attachment filename: can\'t append records.gif |
|Download attachment: http://www.MSAccessForum.com.com/forums/attachment.php?postid=159755|
+----------------------------------------------------------------+