Results 1 to 10 of 10
  1. #1
    sanos_a is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    13

    Make auto number

    Hallo friends,
    I'm new on the forum and have some problems. I want to make field in the table to be something like autonumber but not to be AutoNumber. The filed must be Number but always to encrease next record in the base.


    For example: I put number 4 on the record and now access to put number 5 on next record. How to create that?
    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    sanos_a is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    13
    when i click to new to put new record in the base i need do increase number for example: last number is 2854 and next shoud be 2855.
    i have no idea how i could to it.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you look at the link I posted?

  5. #5
    sanos_a is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    13
    Quote Originally Posted by RuralGuy View Post
    Did you look at the link I posted?
    yes i look link but i solved on another way
    thank you ruralguy

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Would you care to share your solution with others that will read this thread and could benefit?

  7. #7
    sanos_a is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    13
    i have field fabric_number and it should be like i write before.
    on button for adding new record i add docmd.gotorecord , , aclast to go on last record in the table. after that on field fabric_number i add an variable I. so after this docmd.gotorecord , , acnewrec and after this fabric_number = i+1 and everything work just fine like it should work

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks you. Do you want to go ahead and use the thread tool and mark this thread as Solved?

  9. #9
    sanos_a is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    13
    yes i want to mark this as Solved.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Look at my 1st post in this thread and follow the link for directions on how to mark the thread as Solved.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. AuTo NuMbEr
    By Evgeny in forum Forms
    Replies: 2
    Last Post: 04-25-2010, 04:23 AM
  2. Auto-number
    By rkski in forum Programming
    Replies: 2
    Last Post: 01-13-2010, 02:04 AM
  3. Access Auto Number Help
    By jsmmao in forum Access
    Replies: 12
    Last Post: 01-12-2010, 11:17 AM
  4. Auto Number in Query
    By Alex Motilal in forum Programming
    Replies: 1
    Last Post: 09-21-2009, 07:17 AM
  5. Need help with an auto number
    By Wrangler in forum Database Design
    Replies: 1
    Last Post: 02-10-2006, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums