|
Thread: sql
-
Aug 15th, 2005, 02:35 PM
#2
Re: sql
You will have to re-query in order to get the Autonumber because the autonumber is not created until the data has been inserted (or appended).
You should consider creating a function that will query the table to get the last ID number used and then increment it. THen you will know what the ID number is before you insert it. One additional item to note after you change the column from an auto number into a number field type make sure you change the index so that duplicat numbers are not allowed, so that a duplicate ID number is not entered.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|