June 5, 2013 at 9:17 am
I have a vb6 application and the database is housed on an SQL2000 server. My problem is that the vb6 function should increment the numeric form of the ID and then affix the prefix alphabeth aprt to it but strangely i'm getting duplicate ID fields. Once or twice i've had to manually change the ID to what it should be. Could it be because i am doing this?
June 5, 2013 at 9:42 am
glycere2000 (6/5/2013)
I have a vb6 application and the database is housed on an SQL2000 server. My problem is that the vb6 function should increment the numeric form of the ID and then affix the prefix alphabeth aprt to it but strangely i'm getting duplicate ID fields. Once or twice i've had to manually change the ID to what it should be. Could it be because i am doing this?
You'll need to provide some more details to get a decent answer;
offhand, from what you said it sounds like the vb6 function should increment the numeric form of the ID doesn't generate a unique value.
actual examples would help, but i'm thinking the issue is there.
Lowell
June 5, 2013 at 12:03 pm
Can you say what other specifics you need? This particular function has been working well for years and only about couple of months i realized this has happened sporidically. That's why i was wondering if its my interaction with the database.
June 5, 2013 at 12:08 pm
glycere2000 (6/5/2013)
Can you say what other specifics you need? This particular function has been working well for years and only about couple of months i realized this has happened sporadically. That's why i was wondering if its my interaction with the database.
there's a lot of combined talent with all the volunteers that look at this thread, so the more detail you can provide, the more we can help.
lets see the vb6 function; maybe after years it's hitting the 32767 VB6 Integer limit, and the code is rolling over and creating repeats;
that's just a guess, but one possible explanation.
remember all i can tell about the issue, is what you post here; you've got the insiders look at the issue, but also insider assumptions that we know what you see, but we really can't; you have to post it here for us to see it too.
Lowell
June 5, 2013 at 12:15 pm
What came to my mind is that 2 users tried to insert a row at similar times and both got the same ID from the VB function.
Why don't you have any constraint in this column?
June 5, 2013 at 12:58 pm
Only one user uses the application at any given time because only one entry clerk is assigned the task.
June 5, 2013 at 12:59 pm
I will post the codes in a little bit. Thank you for replying
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply