Click here to Skip to main content
16,006,341 members
Home / Discussions / Database
   

Database

 
GeneralUrgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 3:26
wk_vigorous10-Nov-04 3:26 
GeneralRe: Urgent about connection to MSDE 2000 Pin
Mekong River10-Nov-04 4:06
Mekong River10-Nov-04 4:06 
GeneralRe: Urgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 5:53
wk_vigorous10-Nov-04 5:53 
GeneralRe: Urgent about connection to MSDE 2000 Pin
Richard Deeming10-Nov-04 7:42
mveRichard Deeming10-Nov-04 7:42 
GeneralRe: Urgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 22:56
wk_vigorous10-Nov-04 22:56 
GeneralA couple of SQLXML issues Pin
RichardGrimmer9-Nov-04 22:03
RichardGrimmer9-Nov-04 22:03 
GeneralA custom key Pin
totig9-Nov-04 21:56
totig9-Nov-04 21:56 
GeneralRe: A custom key Pin
Mekong River10-Nov-04 4:14
Mekong River10-Nov-04 4:14 
I never code this style but this is what I just think and express my concept to you.

toticow wrote:
if I have 4 records, these will be numbered 1,2,3,4. If I delete row 3, the next row to be inserted should use row 3.

First make sure that you have have the table structure and the first field of your table is set to number (data type) and order it by ascending. When you delete any record from your database, you have to requery your table and order the first field. Then you have to count the total amount of your record in the database, after that make a loop from the first row to the second, third... until the end of row (the amount of loop process is base on the total number of record in the database). And in the each loop process you have to change the value of the first field to match the amount of loop proces. This might help you to solve the problem, if you still have the problem I will try to do it and post the code for your.



A thousand mile of journey, begin with the first step.

APO-CEDC
Save Children Norway-Cambodia Office

GeneralRe: A custom key Pin
totig10-Nov-04 19:26
totig10-Nov-04 19:26 
GeneralRe: A custom key Pin
Colin Angus Mackay10-Nov-04 6:53
Colin Angus Mackay10-Nov-04 6:53 
QuestionHow to update record Pin
Mekong River9-Nov-04 17:20
Mekong River9-Nov-04 17:20 
AnswerRe: How to update record Pin
Mekong River9-Nov-04 17:46
Mekong River9-Nov-04 17:46 
Generalado and radio button Pin
skicrud9-Nov-04 6:06
skicrud9-Nov-04 6:06 
GeneralRe: ado and radio button Pin
Mekong River9-Nov-04 14:28
Mekong River9-Nov-04 14:28 
GeneralDAO and transactions Pin
calliscope9-Nov-04 5:34
calliscope9-Nov-04 5:34 
Generalusing SQL Distinct Pin
Ahmed Galal9-Nov-04 2:44
Ahmed Galal9-Nov-04 2:44 
GeneralRe: using SQL Distinct Pin
Colin Angus Mackay9-Nov-04 10:42
Colin Angus Mackay9-Nov-04 10:42 
GeneralRe: using SQL Distinct Pin
Ahmed Galal10-Nov-04 2:11
Ahmed Galal10-Nov-04 2:11 
GeneralSql Error Pin
nacp8-Nov-04 23:24
nacp8-Nov-04 23:24 
GeneralRe: Sql Error Pin
David Salter8-Nov-04 23:26
David Salter8-Nov-04 23:26 
GeneralRe: Sql Error Pin
Mekong River9-Nov-04 14:32
Mekong River9-Nov-04 14:32 
QuestionPrecision and Scale ? Pin
0v3rloader8-Nov-04 4:32
0v3rloader8-Nov-04 4:32 
AnswerRe: Precision and Scale ? Pin
Richard Deeming8-Nov-04 4:45
mveRichard Deeming8-Nov-04 4:45 
GeneralSQLite Pin
Steve S8-Nov-04 0:46
Steve S8-Nov-04 0:46 
GeneralSQL Server Management API Pin
Its due when7-Nov-04 18:33
Its due when7-Nov-04 18:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.