alexfwalker81
Member
- Local time
- Today, 10:32
- Joined
- Feb 26, 2016
- Messages
- 107
Hi everyone, first post in a while, and first one on a new username!
The background is that I am trying to create an order import file for a legacy system, which is very rigid in terms of what it expects. The specific problem is that for an order which has multiple products on it, each product line must be sequentially numbered - a bit like this;
Order 123 | 001 | Product1 | Qty
Order 123 | 002 | Product2 | Qty
Order 123 | 003 | Product3 | Qty
Order 124 | 001 | Product1 | Qty
Order 125 | 001 | Product6 | Qty
Order 125 | 002 | Product5 | Qty
What I am struggling to do is find a way to dynamically add the 001, 002, 003. I can count the number of rows in an order, but I just cannot figure out how to sequentially number them in my query!
There will always be several orders in an order file, as per the example above.
I can think of various ways to do this in excel, but this needs to happen in Access, as the rest of the processes that surround this output require a database, not a spreadsheet.
Thank you!
The background is that I am trying to create an order import file for a legacy system, which is very rigid in terms of what it expects. The specific problem is that for an order which has multiple products on it, each product line must be sequentially numbered - a bit like this;
Order 123 | 001 | Product1 | Qty
Order 123 | 002 | Product2 | Qty
Order 123 | 003 | Product3 | Qty
Order 124 | 001 | Product1 | Qty
Order 125 | 001 | Product6 | Qty
Order 125 | 002 | Product5 | Qty
What I am struggling to do is find a way to dynamically add the 001, 002, 003. I can count the number of rows in an order, but I just cannot figure out how to sequentially number them in my query!
There will always be several orders in an order file, as per the example above.
I can think of various ways to do this in excel, but this needs to happen in Access, as the rest of the processes that surround this output require a database, not a spreadsheet.
Thank you!