De fleste virksomheder har efterhånden bevist, at AI virker.
Pilotprojekter leverer resultater. Medarbejdere bruger generative AI-værktøjer. Nye use cases dukker op på tværs af organisationen.
If I have a table with 20 post (1-20), and I deleted the 10 of them (11-20) and then compact the database, is it then not possible to continue with the number 11?
>pelkjaer: Dit problem er hvis du har en tabel med posterne 1-30 og derefter sletter 1-15, så er 30 stadig højeste nummer, og næste ID (selv efter komprimering) vil blive 31 !!!
hi! I have looked at the dB and I can NOT find out what the problem is :o( I have also a problem when I make anothe dB table! Will get back as soon as possible, may need searching on the web
IF you delete ALL records then it works. If you only delete the some records then it doesnt. There is an error in XP, which I am checking up on. Will post a reply when I know some more :o) thanks!
Function ChangeSeed(strTbl As String, strCol As String, lngSeed As Long) As Boolean 'You must have a reference to ADO and MS ADO ext. 2.x for DDL and Security
'You must pass the following variables to this function. 'strTbl = Table containing autonumber field 'strCol = Name of the autonumber field 'lngSeed = Long integer value you want to use for next AutoNumber.
Dim cnn As ADODB.Connection Dim cat As New ADOX.Catalog Dim col As ADOX.Column
'Set connection and catalog to current database. Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn
Set col = cat.Tables(strTbl).Columns(strCol)
col.Properties("Seed") = lngSeed cat.Tables(strTbl).Columns.Refresh If col.Properties("seed") = lngSeed Then ChangeSeed = True Else ChangeSeed = False End If Set col = Nothing Set cat = Nothing Set cnn = Nothing
I'll remember that next time. This time I just created a new db :)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.