473,508 Members | 2,206 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automatic increment

Hi,

i know the problem i will tell you belongs to database newsgroup but maybe
there is a way for VB to do that.

I use integer id for customers. Access database give autonumber as id for
customers. When i erase a customer, database doesn't use it's id number for
another customer again. Is there any way for database or VB to solve that
problem??

Thank you..

Nov 21 '05 #1
2 968
Take a look at this...

http://msdn.microsoft.com/library/de...adonetbest.asp

....and do a search for '-1'

The basic idea is that autoincrement fields local to the machine
go -1, -2, -3 but that they get updated with the correct, central
database
generated value, when you push the new rows back to the server.

Also please see the ADO.NET newsgroup. You will find it helpful.

"Çinko" <cozgel(erase)@hotmail.com> wrote in message
news:uo**************@TK2MSFTNGP14.phx.gbl:
Hi,

i know the problem i will tell you belongs to database newsgroup but
maybe
there is a way for VB to do that.

I use integer id for customers. Access database give autonumber as id
for
customers. When i erase a customer, database doesn't use it's id number
for
another customer again. Is there any way for database or VB to solve
that
problem??

Thank you..


Nov 21 '05 #2
Cinko,

No there is no other method than not using that method but creating your own
id's

Cor

"Çinko" <cozgel(erase)@hotmail.com>
..
Hi,

i know the problem i will tell you belongs to database newsgroup but maybe
there is a way for VB to do that.

I use integer id for customers. Access database give autonumber as id for
customers. When i erase a customer, database doesn't use it's id number
for
another customer again. Is there any way for database or VB to solve that
problem??

Thank you..


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2666
by: RotterdamStudents | last post by:
Hello group, the script on this page i use to show the standings in a league. It is shown in a table on my webpage. But I don't know how to number the rows so that the first row is number 1 the...
1
1380
by: C. Barnes | last post by:
Another useful code snippet... This allows you to take a non-threadsafe class, and automatically generate a threadsafe class. When a method is called for your class, it automatically locks the...
1
1607
by: Connelly Barnes | last post by:
Another useful code snippet... This allows you to take a non-threadsafe class, and automatically generate a threadsafe class. When a method is called for your class, it automatically locks the...
4
2355
by: pjac | last post by:
I need assistance in creating an Automatic tracking number that appears in a textbox that looks like: 2004-001. The first part of the number is based on the year, the second part is generated from...
4
2192
by: anita | last post by:
I had posted this question before, but did not hear from anybody. Can somebody pls help me out. I am creating a table with two fields F1, F2 and F2 has about 50,000 randomly generated alphanumeric...
0
6073
by: Anders W. Pedersen | last post by:
Hi there! I'm working on a medium-sized .NET web application written in c#. We are using Visual Studio 2003 for development and Visual Source Safe as our code repository. Occasionally, we do a...
2
1849
by: Trygve Lorentzen | last post by:
Hi, I'm developing an app with automatic version checking and updating. It must also track what version is installed for each customer in our customer database. I have made a small client to...
2
1970
by: Sky | last post by:
Hello, The books on C# I have read talk of using the DataSets in disconnected mode, and Adding/Removing/Updating records from it, and letting it handle all the updating on the Database in one...
7
2477
by: CodeGunnerLev1 | last post by:
Good day guys... I must say this forum is quite of useful one. I really appreciate what you guys are doing and I hope it will continue on. I have few questions that needs some help. 1. I want...
4
2540
by: Slickuser | last post by:
How do I automatic move the X & Y to create a ellipse function as below, DrawCircle? Or there any sample source code out there? I want it move down by user input. How can I achieve this?...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.