Hello, I need help...!
I'm new to using forums for assistance but I've been doing this :banghead: at work now for a couple weeks...
Its hard to explain so I'll start form the beginning. (I hope someone can read it all and help!
)
I'm getting a .csv file from UPS which I need to make into a .csv file to upload to KWM's "tracking uploader".
Here is the main issue: one order can have multiple tracking numbers. To account for this KWM has a column requirement on their upload .csv file called LineNumber which list("autonumber"...!?) the tracking#s from 0 up for every order#.
What I've done:
I created two queries which I used to make the tblOrder & tblMaster then later changed to append queries to the same:
The relationships I created are tblOrder#.Order# >>one-2-many>> tblMaster#.Order#
I created the tblMaster separately from the tblNewTracking because the .csv records from UPS overlap, this way I can have the master with all unique values.
Back to the issue at hand: LineNumber!
LineNumber needs to list starting at 0 the tracking numbers per each order number, like:
Order# LineNumber Tracking#
a1 0 a3a3sd21f6a
a1 1 a6a51d3a5sf
a2 0 a6s5df46a5s
a3 0 s65f4gs65df
a2 1 a6sd5f4a65s
a1 2 a65adfa65sd
a3 1 as65df4a65s
What can I do?
I'm new to using forums for assistance but I've been doing this :banghead: at work now for a couple weeks...
Its hard to explain so I'll start form the beginning. (I hope someone can read it all and help!

I'm getting a .csv file from UPS which I need to make into a .csv file to upload to KWM's "tracking uploader".
Here is the main issue: one order can have multiple tracking numbers. To account for this KWM has a column requirement on their upload .csv file called LineNumber which list("autonumber"...!?) the tracking#s from 0 up for every order#.
What I've done:
- tblNewTracking: where I upload the .csv file from UPS
Order#Tracking#DateCarrier - tblOrder#: lists all orders uniquely as an FK
Order#<FK> - tblMaster: List the unique ID and all the information I upload from the .csv's
ID<FK>Order#LineNumberTracking#DateCarrier
I created two queries which I used to make the tblOrder & tblMaster then later changed to append queries to the same:
- qryOrder#: Groups the Order numbers and it append them to the tblOrder#
- qryNew2Master: Appends all the information from tlbNewTracking to tblMaster and it creates a unique ID ([Order#]&[date]&[tracking#]) I use as the FK on my tblMaster.
The relationships I created are tblOrder#.Order# >>one-2-many>> tblMaster#.Order#
I created the tblMaster separately from the tblNewTracking because the .csv records from UPS overlap, this way I can have the master with all unique values.
Back to the issue at hand: LineNumber!
LineNumber needs to list starting at 0 the tracking numbers per each order number, like:
Order# LineNumber Tracking#
a1 0 a3a3sd21f6a
a1 1 a6a51d3a5sf
a2 0 a6s5df46a5s
a3 0 s65f4gs65df
a2 1 a6sd5f4a65s
a1 2 a65adfa65sd
a3 1 as65df4a65s
What can I do?