Using VB Code, create an Autonumber and then create a primary key on that field...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanju4kk
    New Member
    • Sep 2008
    • 6

    Using VB Code, create an Autonumber and then create a primary key on that field...

    I am attempting to create a module that I can call to create a new field in my temp table that will be an autonumber, and then assigned that new field as the primary key. I have been search high and low for the code, it seems like an easy task but haven't solved the problem yet. Here is the current scenario: I import an text file of numbers, once imported, I need to assign a unique (autonumber) value to each number imported, starting with 1 to however many numbers were imported and maintain the order in which the numbers were imported!!! Hopefully this isn't too confusing....Th anks again
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    are you trying to store the data into a database table ?

    Comment

    Working...