Re: Query to set values in an ID Field
From: Val Mazur (group51a_at_hotmail.com)
Date: 08/31/04
- Next message: Val Mazur: "Re: ExecuteNonQuery -> Unexpected error message"
- Previous message: William \(Bill\) Vaughn: "Re: ExecuteNonQuery -> Unexpected error message"
- In reply to: Andy DF: "Query to set values in an ID Field"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 30 Aug 2004 20:50:57 -0400
Hi,
No, there is no simple query to do this. Cannot you leave the gaps? I think
in this case you could avoid this extra coding.
-- Val Mazur Microsoft MVP "Andy DF" <PrivateType@vb.com> wrote in message news:cgunal$8o7$1@lacerta.tiscalinet.it... > Hi all, > > I have a a table with an ID field containing incremental unique numbers > that > identify single rows. > The field is NOT auto-incremental, it's an integer field and ID's are > handled manually by code for a series of reasons. > After records are deleted, the ID number sequence is broken and in order > to > remove holes in the number sequence I normally loop thru each row to reset > the ID. > > Is there some form of a query that can do that in one call? > In other words, is there an SQL instruction that can reset all my ID > fields > in the table incrementally? > > Thanks a bunch, > > -- > Andy, > pctos550@hotmail.com > >
- Next message: Val Mazur: "Re: ExecuteNonQuery -> Unexpected error message"
- Previous message: William \(Bill\) Vaughn: "Re: ExecuteNonQuery -> Unexpected error message"
- In reply to: Andy DF: "Query to set values in an ID Field"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|