A
Ady
Hi There
Using Office 2000
=============
I have an access database. I am trying to import data from an excel
spreadsheet into the DB via a macro. Within the spreadsheet I have 2
worksheets:
Start Date Jan 2000
Blanket Orders
Both worksheets within the spreadsheet contain the same column headings. In
access I have created a macro that will automatically import and create a
table for each worksheet:
Table: Start Date Jan 2000
Table: Blanket Orders
However what I am really trying to do is to merge all the data together in
one table (via macro). The data is in the same format on both
worksheets.Same column headings etc.
I tried the Append Query option and even though all the columns are the same
in both worksheets I get the following
error message:
Microsoft Access set 319 field(s) to Null due to a type conversion failure,
and it didn't add 0 records to the table due to key violations, 0 record(s)
due to lock violations, and 0 record(s) validation rule violations.
I probably couldn't get it more wrong if I tried to!!!!!!!
If it is any help here is the SQL view:
INSERT INTO [Blanket Order List] ( [Job No#], [Order No], [Part Number],
Description, QTY, Customer, [Date Order Rec'd], [Date Sent], [Due Date],
[Price Each], [Total Value], [Issue/cmnts], [Stock Amount] )
SELECT [Sales Order List].[Job No#], [Sales Order List].[Order No], [Sales
Order List].[Part Number], [Sales Order List].Description, [Sales Order
List].QTY, [Sales Order List].Customer, [Sales Order List].[Date Order
Rec'd], [Sales Order List].[Date Sent], [Sales Order List].[Due Date],
[Sales Order List].[Price Each], [Sales Order List].[Total Value], [Sales
Order List].[Issue/cmnts], [Sales Order List].[Stock Amount]
FROM [Sales Order List];
Thank you in advance for any help offered. All very much
appreciated!
Regards
Ady
Using Office 2000
=============
I have an access database. I am trying to import data from an excel
spreadsheet into the DB via a macro. Within the spreadsheet I have 2
worksheets:
Start Date Jan 2000
Blanket Orders
Both worksheets within the spreadsheet contain the same column headings. In
access I have created a macro that will automatically import and create a
table for each worksheet:
Table: Start Date Jan 2000
Table: Blanket Orders
However what I am really trying to do is to merge all the data together in
one table (via macro). The data is in the same format on both
worksheets.Same column headings etc.
I tried the Append Query option and even though all the columns are the same
in both worksheets I get the following
error message:
Microsoft Access set 319 field(s) to Null due to a type conversion failure,
and it didn't add 0 records to the table due to key violations, 0 record(s)
due to lock violations, and 0 record(s) validation rule violations.
I probably couldn't get it more wrong if I tried to!!!!!!!
If it is any help here is the SQL view:
INSERT INTO [Blanket Order List] ( [Job No#], [Order No], [Part Number],
Description, QTY, Customer, [Date Order Rec'd], [Date Sent], [Due Date],
[Price Each], [Total Value], [Issue/cmnts], [Stock Amount] )
SELECT [Sales Order List].[Job No#], [Sales Order List].[Order No], [Sales
Order List].[Part Number], [Sales Order List].Description, [Sales Order
List].QTY, [Sales Order List].Customer, [Sales Order List].[Date Order
Rec'd], [Sales Order List].[Date Sent], [Sales Order List].[Due Date],
[Sales Order List].[Price Each], [Sales Order List].[Total Value], [Sales
Order List].[Issue/cmnts], [Sales Order List].[Stock Amount]
FROM [Sales Order List];
Thank you in advance for any help offered. All very much
appreciated!
Regards
Ady