CandieCane
Programmer
Hello everyone,
I'll try and explain this to you the best that I can.
I'm am making a webpage using dll's to connect to my access database. In this, I cannot use autonumbers in case that we wanted to convert our database from access to oracle or sql. So, I have a function that does this. It calls a table in our database, to see that last id in which to increment it everytime so there'll be no duplicate values in the primary key. Only problem is, in a normal registration form, you ask the user for atleast 3 types of phone numbers (in this case, I ask for home, work & fax). I have 3 separate functions to insert each different phone number (because of our database table you don't have much choice).
To get to the problem, it won't increment properly. I'm wondering if maybe I should refresh the database(or that specific table, if possible) after every phone function is called so that maybe it'll take the right last id to increment?! The weird thing is that the home phone number works fine, it's only when it gets to the second phone # (work) that it has problems, but than when it comes to the fax # it's fine again!
ANY help appreciated!!!! Candie ;o)
"Mere distances between 2 people bring you all that much closer in the end!"
I'll try and explain this to you the best that I can.
I'm am making a webpage using dll's to connect to my access database. In this, I cannot use autonumbers in case that we wanted to convert our database from access to oracle or sql. So, I have a function that does this. It calls a table in our database, to see that last id in which to increment it everytime so there'll be no duplicate values in the primary key. Only problem is, in a normal registration form, you ask the user for atleast 3 types of phone numbers (in this case, I ask for home, work & fax). I have 3 separate functions to insert each different phone number (because of our database table you don't have much choice).
To get to the problem, it won't increment properly. I'm wondering if maybe I should refresh the database(or that specific table, if possible) after every phone function is called so that maybe it'll take the right last id to increment?! The weird thing is that the home phone number works fine, it's only when it gets to the second phone # (work) that it has problems, but than when it comes to the fax # it's fine again!
ANY help appreciated!!!! Candie ;o)
"Mere distances between 2 people bring you all that much closer in the end!"