Results 1 to 3 of 3
  1. #1
    chillin is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    2

    Want numbers to be in order

    I designed a database for our small company ten years ago. In my order table I have the Order No. field as the primary key and it is a text data type. Orders started at 1001 and we have just hit order no 10000. Instead of falling after 9999, order no 10000 is back at the top before 1001. I thought changing the field type to number would allow it to continue in a consecutive order, but it won't allow me to change it, it says I must remove the relationships with other tables.



    I don't know enough about Access to do that. Can anyone help?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I would probably create a copy and remove the relationship. Then see if I can get the data type to change over to Long Integer.

    Check to see if all is well. Afterwards, it would probably be easiest to repeat the process in the production DB. Although, best practice is to make changes in a copy and import the changes. The difference here is Relationships are typically included in the import process and you will have to rebuild the relationship anyway, even if you opted to not import Relationships.

  3. #3
    chillin is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    2
    Thank you. Took me awhile, but I was finally able to figure it out and fixed it!

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

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  2. Allow more than order in an ORDER form.
    By kiko in forum Access
    Replies: 37
    Last Post: 04-19-2013, 05:30 AM
  3. How to order columns in ascending order?
    By darkingthereturn in forum Access
    Replies: 5
    Last Post: 06-18-2012, 05:24 AM
  4. Replies: 1
    Last Post: 11-29-2011, 08:43 AM
  5. Adding line numbers to a purchase order report
    By jordanturner in forum Reports
    Replies: 1
    Last Post: 12-08-2010, 08: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