Results 1 to 2 of 2
  1. #1
    charya is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    1

    Sequential Order ID on Form

    Hi everyone,
    Its my first thread here!

    Let me describe the database Im doing...

    Consist of 4 tables - customer, order, supplier and product
    Customer can have many orders, one order can only have one product, and a supplier can supply many products.

    What I want to do:
    Create an Order Form in which the Order ID field automatically has a sequential Order ID.


    Lets say the Order Table's last value was ORD125.
    The form would then put a sequential value in Order ID of ORD126.

    The rest of the fields in the form would be filled by the customer.

    What Ive done:
    Ive created a form and set the Data Entry to "Yes" so that the form is blank.

    Ive created one query to take the Higest Order ID from the order table (lets say ORD123), and then ive created a second query which uses the first query to generate a sequential ID.

    i.e.:
    First query: ORD123
    Second Query: ORD123 +1 = ORD124 (I did this with "ORD" & RIGHT etc.)

    I simply linked the OrderID field from the Form to the second query so that the sequential id appears, but I keep getting "Name?"

    Thats the problem really, any help would be really appreciated!

    Thanks so much!

  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
    Maybe you will find this link helpful: http://www.baldyweb.com/CustomAutonumber.htm

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

Similar Threads

  1. Replies: 1
    Last Post: 11-07-2010, 11:04 AM
  2. Help With Purchase Order Form
    By SpeedyApocalypse in forum Forms
    Replies: 29
    Last Post: 04-09-2010, 07:06 PM
  3. Passing data to sequential form fields
    By jeepfamilyva in forum Forms
    Replies: 0
    Last Post: 06-28-2009, 11:04 AM
  4. create sequential id
    By proudestmnky1 in forum Programming
    Replies: 0
    Last Post: 12-16-2008, 12:10 AM
  5. CallTicketID populated to Order Form
    By EisBlade in forum Forms
    Replies: 0
    Last Post: 04-03-2006, 10:50 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