Results 1 to 3 of 3
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Autogenerated Purchase Order Number

    A day late and a dollar short, it occurs to me that I need a autogenerated purchase order number.


    I would like to use the first letter of the Customer for that Order as the first part of the Purchase Order.
    Below is the Combo code I use to get the Customer from.
    I would then like to add this code after that first letter has been obtained. I was trying to do this myself but with no luck. Some sort of trim statement is needed I suspect!

    So, again, I want to use the First Letter of The Customer Name, i.e. CustomerID and then use the OrderID Plus 20 for a unique PO Number.

    =Left([CustomerID],1)+[OrderID]+20


    SELECT DISTINCTROW Customers.CustomerID, Customers.CompanyName, Customers.TaxRate, Customers.ShipRate, Customers.CustShipVia FROM Customers ORDER BY Customers.CompanyName;


    Hey, I did not use the above but something just as good. Thanks Anyway Guys!
    Last edited by burrina; 12-15-2012 at 03:37 PM. Reason: Figured it Out

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    How about showing a solution for those who may need it for a similar situation at some time.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Here is what I did. I used this as the control source for the Purchase Order Number. Sorry, I should have posted the solution.Was feeling really bad.

    ="EU" & "" & [OrderID]+5 & "S" & Year(Now())

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

Similar Threads

  1. Creating a Purchase Order
    By bnecrush in forum Access
    Replies: 12
    Last Post: 11-20-2012, 06:27 PM
  2. Purchase Order Report
    By jordanturner in forum Forms
    Replies: 1
    Last Post: 10-13-2010, 10:53 PM
  3. how to creat purchase order
    By arctushar@yahoo.com in forum Access
    Replies: 5
    Last Post: 10-07-2010, 08:14 PM
  4. Northwind Purchase Order Number
    By jpl85716 in forum Access
    Replies: 3
    Last Post: 09-29-2010, 12:53 PM
  5. Help With Purchase Order Form
    By SpeedyApocalypse in forum Forms
    Replies: 29
    Last Post: 04-09-2010, 07:06 PM

Tags for this Thread

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