mcbain1212 Posted December 3, 2004 Posted December 3, 2004 I have a database of widget orders. The problem is that when a customer buys four widgets I get a record for each widget with the customers name, address, and widget ordered (I cannot change how I get this data). For shipping I need to combine all the widgets ordered for each customer into a field or multiple fields but into one record. Any help would be appreciated!
-Queue- Posted December 3, 2004 Posted December 3, 2004 Why not use a related file and portal to enter purchases for customers? Each related record would contain the customer's id and one widget id, plus any other necessary fields. You can then create a value list based on relationship::widgetID and use a ValueListItems calculation to display them all in one field. Substitute( ValueListItems( Status(CurrentFileName), "widgetIDs" ), "
Fenton Posted December 4, 2004 Posted December 4, 2004 Or, going in the other direction, print the order with the Client data in a Subsummary part, Sorted by client. The widgets go in the Body. The advantage of this method is that you can have any number of "widget" fields (quantity, price, subtotal, etc.).
Recommended Posts
This topic is 7298 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