A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Auto-Increment Issue (couldn't find this one)



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 07:43 PM posted to microsoft.public.access
NickF
external usenet poster
 
Posts: 4
Default Auto-Increment Issue (couldn't find this one)

Windows XP Service Pack 3
Access 2007 (from Office 2007)
Visual Basic 6.0

I have a table with an auto-increment column. This time of year, there is a
lot of deleting and inserting going on in that table. Inserts are done
through a Visual Basic program that does not touch the auto-increment field.
Now and then, more so this time of year, I get a duplicate in the field and
of course if fails. I found that, to fix it, I have too compact and repair
the data base. Needless to say, that gets tiresome doing it multiple times
in one day.

Any solutions?

thanx,
nick
  #2  
Old March 9th, 2010, 08:03 PM posted to microsoft.public.access
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Auto-Increment Issue (couldn't find this one)

Is it an mdb or accdb file?

"Auto-Increment". Do you mean an autonumber data type of some other method
of incrementing that field?

What service pack are you on? Office Button, Access Options, Resources,
about Microsoft Office Access.

Are you sure that the VB program doesn't mess with that field.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"nickf" wrote:

Windows XP Service Pack 3
Access 2007 (from Office 2007)
Visual Basic 6.0

I have a table with an auto-increment column. This time of year, there is a
lot of deleting and inserting going on in that table. Inserts are done
through a Visual Basic program that does not touch the auto-increment field.
Now and then, more so this time of year, I get a duplicate in the field and
of course if fails. I found that, to fix it, I have too compact and repair
the data base. Needless to say, that gets tiresome doing it multiple times
in one day.

Any solutions?

thanx,
nick

  #3  
Old March 9th, 2010, 08:34 PM posted to microsoft.public.access
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Auto-Increment Issue (couldn't find this one)

nickf,

In addition to what Jerry said... have a look at...

http://allenbrowne.com/ser-40.html

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"nickf" wrote in message
...
Windows XP Service Pack 3
Access 2007 (from Office 2007)
Visual Basic 6.0

I have a table with an auto-increment column. This time of year, there is a
lot of deleting and inserting going on in that table. Inserts are done
through a Visual Basic program that does not touch the auto-increment field.
Now and then, more so this time of year, I get a duplicate in the field and
of course if fails. I found that, to fix it, I have too compact and repair
the data base. Needless to say, that gets tiresome doing it multiple times
in one day.

Any solutions?

thanx,
nick

  #4  
Old March 13th, 2010, 05:33 PM posted to microsoft.public.access
De Jager
external usenet poster
 
Posts: 393
Default Auto-Increment Issue (couldn't find this one)


"nickf" wrote in message
...
Windows XP Service Pack 3
Access 2007 (from Office 2007)
Visual Basic 6.0

I have a table with an auto-increment column. This time of year, there is
a
lot of deleting and inserting going on in that table. Inserts are done
through a Visual Basic program that does not touch the auto-increment
field.
Now and then, more so this time of year, I get a duplicate in the field
and
of course if fails. I found that, to fix it, I have too compact and
repair
the data base. Needless to say, that gets tiresome doing it multiple
times
in one day.

Any solutions?

thanx,
nick


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.