Hello,
So I need to make a .csv file with order tracking information. I get the database already from a .csv but I'm using access to store it an manipulate it (too much information for excel). These are the fields I get:
Tracking #
Order ID
Date
Carrier
But I need to make this into:
Order ID
LineNumber
Carrier
Tracking Number
So I need assistance with the LineNumber field. This field is has to be auto-number based on the Order ID, IE: If an order has multiple packages and they were sent on different trucks or carriers, I would have multiple tracking#s for a single Order ID, the LineNumber has to organize them by means of an counter that counts each new tracking number from 0 up, like:
Order ID LineNumber Tracking# 10001 0 abc 10002 0 abc 10002 1 abd 10003 0 abd 10002 2 abe 10003 1 abe
....Help!
this is what I've done so far:
- I created a table with all the fields I receive.
- I created a query that appends into a table all my OrderIDs without repetition
- this table only has one field, an FK, and has a one-to-many relationship to my master table OrderID.
- I created a second query that appends all the fields plus it creates a unique value by conniving the OrderID with the Date and the Tracking#
- this is my FK to avoid adding a record twice since the original .csv laps with the previews one I get.
- I made a query from which I intend to export the .csv I need to submit.
Thank You!!