Want to generate a serial number using either query or VBA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muhammadayub77
    New Member
    • Jan 2016
    • 3

    #1

    Want to generate a serial number using either query or VBA

    Hi
    I am using ms access 2013. Often in my organization an excel sheet with the data needs to be imported in ms access for official use. While creating reports before that i want a table to have a serial number.So i add a field in the working table but i cannot populate the rows with serial number say starting from 1 2 3 4 5 6 .......100.
    I have to populate it manually. Now the case came that it has 84000 rows. so i cannot insert it manually. Can some one tell me a query or VBA code to insert it.
    Regards
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Add an autonumber field to the table.

    Comment

    • muhammadayub77
      New Member
      • Jan 2016
      • 3

      #3
      Waaaaw! thank you Rabbit. It worked!

      Comment

      Working...