[Solved] Inconsistent record numbering

Creating and using forms
Post Reply
gkick
Posts: 324
Joined: Wed Aug 07, 2019 5:24 pm
Location: Chile

[Solved] Inconsistent record numbering

Post by gkick »

Just an observation.
while testing updating a record with the current user name after changing a record I noticed that when I update record number 2 in the entry form I am actually changing record number 1 in the underlying table since table records start with 0.
Last edited by gkick on Thu Nov 28, 2019 6:28 pm, edited 1 time in total.
Libre Office 6.4.6 on Windows 10 HSQL 2.51 backend
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Inconsistent record numbering

Post by Villeroy »

You can start the ID numbers with any integer number and increment with any integer other than 0. The auto-value is not a concrete row number. It is a unique index number distinguishing one record from another. It would still work if it were generated as a random integer.
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
F3K Total
Volunteer
Posts: 1044
Joined: Fri Dec 16, 2011 8:20 pm

Re: Inconsistent record numbering

Post by F3K Total »

if you want, in an allready filled table, to raise the ID by 1 you can use via Tools/SQL...

Code: Select all

UPDATE "Table1" SET ID = ID + 1
now Menue View/Refresh Tables
  • MMove 1.0.6
  • Extension for easy, exact positioning of shapes, pictures, controls, frames ...
  • my current system
  • Windows 11 AOO, LO | Linux Mint AOO, LO
gkick
Posts: 324
Joined: Wed Aug 07, 2019 5:24 pm
Location: Chile

Re: Inconsistent record numbering

Post by gkick »

Thank you guys 8-)
Libre Office 6.4.6 on Windows 10 HSQL 2.51 backend
Post Reply