I feel really stupid, I have followed the posts on OOO and here on Libre Office but no matter what, I cannot get an append of additional columns to succeed.
Existing table (SalesHistorySep15) has a primary key (not auto key)
ItemNo is primary key and has several other columns
SalesJan13 to SalesSep15
I now want to add column SalesOct15.
I open a calc file and connect to database (F4) and drag and drop table into calc sheet.
Create a new column SalesOct15 and Populate with data.
Have tried several Methods. Here below is one. I can document the other methods and the different errors, if its a real problem, at this point I suspect I have missed something basic and the fault lies with my me.
- Create new column in Base called SalesOct15.
- Copy ItemNo (Primary Key) and SalesOct15 in Calc. Paste into table in Base.
- Choose Append Data and Use 1st Row as column names.
- Move SalesOct15 up to second position to match position on Source
Receive following Error.
Violation of Unique Contraint SYS_PK_165: duplicate value(s) for Column(s) “Item No” in statement {INSERT INTO “SalesHistorySep15” (“ItemNo”,SalesOCT15") VALUES (??)} Continue anyway …Yes No.
Have a great day
Bob
LIBREOffice Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Java 8 Update 60 (64 bit)
Windows 10 (64 bit)