Cannot enter new data to a table

Creating tables and queries
Post Reply
epzcaw
Posts: 5
Joined: Sat Jan 10, 2009 12:34 am

Cannot enter new data to a table

Post by epzcaw »

I have imported a database which was generated with MS Access 2000. I am unable to add new records to any of the tables. I use the 'Insert New record', add the informtion but when I try to save the table , I get the message 'Error inserting the new record'. It is supposed to automatically generate the primary key, but does not appear to do so.

Would be grateful for any help with this.
OOo 3.0.X on Ms Windows Other
User avatar
r4zoli
Volunteer
Posts: 2882
Joined: Mon Nov 19, 2007 8:23 pm
Location: Budapest, Hungary

Re: Cannot enter new data to a table

Post by r4zoli »

It is a Primary Key related problem, if it not works, will not add new records.
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
epzcaw
Posts: 5
Joined: Sat Jan 10, 2009 12:34 am

Re: Cannot enter new data to a table

Post by epzcaw »

is there any way I can fix this? Or is it not possible to enter new data into an MS Access database?

I found a way round it by putting all the data from the table into a spreadsheet and re-importing it into new table. Not ideal but it works.
OOo 3.0.X on Ms Windows Other
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Cannot enter new data to a table

Post by Villeroy »

Make a backup of both databases and define a primary key for all tables that need to be editable. Use either Base or Access for this. Primary keys have to contain unique values in one field or unique combinations across more than one field.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
BurSer
Posts: 2
Joined: Tue Feb 17, 2009 8:55 pm

Cannot enter new data to a table

Post by BurSer »

I can't simply insert the records. The menu Insert -> Record is locked. So, there is no empty records in the bottom of the table.
User avatar
kabing
Volunteer
Posts: 678
Joined: Fri Nov 23, 2007 12:05 am
Location: Midwest, USA

Re: Cannot enter new data to a table

Post by kabing »

BurSer:

Does your table have a primary key?

Are you using the built-in hsqldb engine or connecting to an existing database?

kabing
NeoOffice (app store version) OpenOffice.org 4.1 and LibreOffice 4.3 on Mac OS X El Capitan
OpenOffice.org 4.1.2 on Windows 10 (Previously on Vista)
BurSer
Posts: 2
Joined: Tue Feb 17, 2009 8:55 pm

Re: Re: Cannot enter new data to a table

Post by BurSer »

Thank you for advice! Everything is OK now.
OOo 3.0.X on Ms Windows XP
Post Reply