uzywamy access 2000
W firmie sa jakies tam zamowienia i jest zrobiony w accesie formularz do nadawania specyfikacji na dane zamowienie przy kazdym dodaniu specyfikacji nadawany jest nume ID secyfikacji ktory jest nadawany automatycznie. Numerowanie zatrzymalo sie na num 1441 i kolejny numer nadaje sie tak: 871E+04
jedyne rozwiazanie jakie znalazlem to cos takiego:
Function ChangeSeed(strTbl As String, strCol As String, lngSeed As Long) As Boolean 'You must pass the following variables to this function. 'strTbl = Table containing autonumber field 'strCol = Name of the autonumber field 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 End Function
ale nic to nie daje...
czy ktos jest w stanie mi podpowiedziec??
teoretycznie wyglada to tak jak by nie nadawal liczby calkowitej tylko jakas zmiennoprzecinkowa.... usuwam ostatnie rekordy z tymi liczbami, czyli zostawiam tylko te ktore sa nimy dobre, w formularzu ustawilem pole id na liczbe stala bez miejsc dziesietnych i dalej jest to samo...