Results 1 to 3 of 3
  1. #1
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    55

    Can i start an autonumber with a fixed value ?

    In access can i start an auto number with a fixed value ?

    ex:


    i want the autonumbers to be 2011 then the autonumber
    (2011001, 2011002, 2011003, ... )

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a good article on AutoNumbers: http://www.utteraccess.com/forum/Aut...t-t443604.html

  3. #3
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    I would create an integer type field and manually control populating the value instead of trying to manipulate an autonumber type field. I would highly recommend NOT trying to change or force a value into an autonumber field. You can easily end up corrupting the table if you try to force a value into an autonumber field.

    If need be, you can also create an expression in a query to combine the autonumber value with another field or the current year (ie. MyAutoNumber: [AutoNumberFieldName] & [SomeOtherFieldName] or MyAutoNumber: Format(Date(),"yyyy") & [AutoNumberFieldName])

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

Similar Threads

  1. Replies: 1
    Last Post: 01-10-2011, 11:37 PM
  2. Fixed column widths in SubForm
    By nyteowl in forum Access
    Replies: 4
    Last Post: 10-15-2010, 02:00 PM
  3. Replies: 3
    Last Post: 08-09-2010, 08:02 PM
  4. creation of reports with fixed number of rows
    By georgia in forum Reports
    Replies: 1
    Last Post: 02-17-2010, 10:40 PM
  5. Report like a fixed form
    By mikr in forum Reports
    Replies: 0
    Last Post: 08-30-2009, 12:25 AM

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