J
Jon
I have the following table for use in this form/subform:
Shipment
==============
Shipment_Number
Source
Destination
Miles
Trip_Duration
Weight
Arrival_Time
Departure_Time
Each shipment number has at least 2 rows.
When sorted by shipment_number and Arrival time, you can see where a
shipment goes.
Take this shipment as an example:
The data will be in this order: (Shipment_Number, Source, Destination,
Miles, Arrival_Time)
1234, Dallas, Austin, 200, 03/01/2007 12:00:00PM
1234, Dallas, San Antonio, 100, 03/01/2007 3:00:00PM
1234, Dallas, Laredo, 150, 03/02/2007 12:00:00AM
1234, Dallas, Waco, 450, 03/03/2007 6:00:00AM
1234, Dallas, Dallas, 100, 03/03/2007 10:30:00AM
This means that the shipment starts in Dallas, then goes to Austin,
then San Antonio, then Laredo, then Waco, then back to Dallas. The
shipment always ends at where it started (the source).
I have a form that has 2 forms on it. The top form is a group report
that shows Shipment_Number and the sum of the miles and the
min(arrival_time) and the max(departure_time) for each
shipment_number. The top report for the above example would look like
this (but with much more data in the real report):
1234 - 1,000 miles, 03/01/2007 Start Date, 03/03/2007 End Date
1235 - 687 miles, 03/01/2007 start date, 03/07/2007 end date
The form below it, is a subform that shows the detailed rows for each
shipment highlighted in the top report (this looks like the example
above).
I need to have a field in the top summary report that is a string that
combines all the different destinations. So, the example above would
look like this in the top summary report:
1234, Austin-->San Antonio-->Laredo-->Waco-->Dallas, 1,000 miles,
etc......
My strength is in Powerbuilder, and I am trying to do this in Access
(w/VBA).
I can build the location strings, but I do not know how to edit the
existing form and put the new string in whichever row it needs to be
in. These need to be in the top summary form as soon as the user opens
the form.
Shipment
==============
Shipment_Number
Source
Destination
Miles
Trip_Duration
Weight
Arrival_Time
Departure_Time
Each shipment number has at least 2 rows.
When sorted by shipment_number and Arrival time, you can see where a
shipment goes.
Take this shipment as an example:
The data will be in this order: (Shipment_Number, Source, Destination,
Miles, Arrival_Time)
1234, Dallas, Austin, 200, 03/01/2007 12:00:00PM
1234, Dallas, San Antonio, 100, 03/01/2007 3:00:00PM
1234, Dallas, Laredo, 150, 03/02/2007 12:00:00AM
1234, Dallas, Waco, 450, 03/03/2007 6:00:00AM
1234, Dallas, Dallas, 100, 03/03/2007 10:30:00AM
This means that the shipment starts in Dallas, then goes to Austin,
then San Antonio, then Laredo, then Waco, then back to Dallas. The
shipment always ends at where it started (the source).
I have a form that has 2 forms on it. The top form is a group report
that shows Shipment_Number and the sum of the miles and the
min(arrival_time) and the max(departure_time) for each
shipment_number. The top report for the above example would look like
this (but with much more data in the real report):
1234 - 1,000 miles, 03/01/2007 Start Date, 03/03/2007 End Date
1235 - 687 miles, 03/01/2007 start date, 03/07/2007 end date
The form below it, is a subform that shows the detailed rows for each
shipment highlighted in the top report (this looks like the example
above).
I need to have a field in the top summary report that is a string that
combines all the different destinations. So, the example above would
look like this in the top summary report:
1234, Austin-->San Antonio-->Laredo-->Waco-->Dallas, 1,000 miles,
etc......
My strength is in Powerbuilder, and I am trying to do this in Access
(w/VBA).
I can build the location strings, but I do not know how to edit the
existing form and put the new string in whichever row it needs to be
in. These need to be in the top summary form as soon as the user opens
the form.