Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / February 2007

Tip: Looking for answers? Try searching our database.

Unique Autonumber Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeJohnB - 27 Feb 2007 19:08 GMT
I have not come across this before and just wondered if anyone had any
suggestions as to the cause.

I have a parent form, a subform and a subsubform for Invoice Number (VBA
Generated)
Linked to referenceNumber on the first Subform. which in turn is linked to
the subsubform by an autonumber. The order of the autonumber doesn't matter,
the value id insignificant. However, the data base I wrote worked very well
for 2 years but fell over today.

The autonumber value was up to 2500 ish and is a long int, today I received
a frantic call referencing an error, duplicate primary key failuer. It took
me a couple of minutes to work out that the autonumber had been somehow reset
at 40. Obviously record 41 existed so it gave the dup error.

I have over come this issue very easily but I wondered if you Guys had come
across this issue?

Kindest Regards

Mike B
Signature

An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.

Allen Browne - 27 Feb 2007 23:49 GMT
See:
   Fixing AutoNumbers when Access assigns negatives or duplicates
at:
   http://allenbrowne.com/ser-40.html
The article lists several known causes.

A compact/repair may fix the issue, or use the code in the article.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I have not come across this before and just wondered if anyone had any
> suggestions as to the cause.
[quoted text clipped - 19 lines]
> come
> across this issue?    `
MikeJohnB - 28 Feb 2007 08:48 GMT
Thanks Alan, would have put money on you knowing the answer, Cheers

Mike B
Signature

An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.

> See:
>     Fixing AutoNumbers when Access assigns negatives or duplicates
[quoted text clipped - 27 lines]
> > come
> > across this issue?    `
Douglas J. Steele - 28 Feb 2007 12:12 GMT
So would Allen <g>

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> Thanks Alan, would have put money on you knowing the answer, Cheers
>
[quoted text clipped - 7 lines]
>>
>> A compact/repair may fix the issue, or use the code in the article.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.