Newbies Sallaman Posted October 5, 2006 Newbies Posted October 5, 2006 I wonder if I can export the same record several times with different information? For exampel: I have a customer namned: John Doe Adress: The street City: New York and he wants to order one thing called K1 and three of one thing called K2. All this information are in seperate fields. I then would like to export this record to a xls or text file that are seperated and with 2 different rows (or more if they want other products as well) like this: Name..........Adress......City...Quant.....Descrip John Doe......The street..NY......1........K1 John Doe......The street..NY......3........K2 Of course this has to work if I lookup many records also. It works fine to get one row for every record but I need them to be on seperate rows. //fredrik
Fitch Posted October 5, 2006 Posted October 5, 2006 The best way to approach this IMO is to make a separate table for your orders, which would store the customer ID (key file for relationship to customers), Quantity, and Description. Then do your export from this table.
Newbies Sallaman Posted October 6, 2006 Author Newbies Posted October 6, 2006 (edited) Hi, thanks for Your answer but I still don't understand how that will help since I only want one order and not several orders or maybe I do not understand what You saying? Edited October 6, 2006 by Guest
Fitch Posted October 6, 2006 Posted October 6, 2006 I was trying to use your terminology, but what I'm trying to say is make a separate table for the line items of the order and export from the line items table. There are many advantages to structuring your data this way.
Recommended Posts
This topic is 6623 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now