Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Major report gen issues - a chance to win big star points - Arrays an/

Status
Not open for further replies.

agray123

Technical User
Mar 4, 2002
110
US
OK this report is KILLING me - I am creating travel expense forms that match our agency's form - that is designed for hand entry - to a electronic version that spits out data in this format:(pull into notebook and eliminate word wrap)
EXPENSEDETAILID TRAVELID ARRIVEDATETIME ESTABLISHMENT LOCATION RATE SUBSISTANCE COSTTYPE AMOUNT BEGINDATETIME ENDDATETIME
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Parking & Tolls 23.45 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Meals 98.85 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Personal Car 87.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Airline 98.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Airline 163.65 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Rental Car Gas 25.68 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Train / Subway 85.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Taxi 12.09 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RQ Q6UJ9A0000RG 8/12/2004 9:30:00 PM Howard Johnson'sEbensburg 48.00 28.00 Car Rental 99.87 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Parking & Tolls 23.45 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Meals 98.85 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Personal Car 87.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Airline 98.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Airline 163.65 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Rental Car Gas 25.68 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Train / Subway 85.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Taxi 12.09 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RR Q6UJ9A0000RG 8/14/2004 3:23:00 AM Marriott Philadelphia 128.00 44.00 Car Rental 99.87 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Parking & Tolls 23.45 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Meals 98.85 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Personal Car M 87.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Airline 98.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Airline 163.65 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Rental Car Gas 25.68 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Train / Subway 85.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Taxi 12.09 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RS Q6UJ9A0000RG 8/15/2004 5:45:00 PM DewDrop Inn Selinsgrove 19.99 28.00 Car Rental 99.87 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Parking & Tolls 23.45 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Meals 98.85 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Personal Car 87.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Airline 98.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Airline 163.65 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Rental Car Gas 25.68 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Train / Subway 85.00 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Taxi 12.09 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM
Q6UJ9A0000RT Q6UJ9A0000RG 8/16/2004 3:25:00 PM Ritz Carlton Manhattan 179.00 74.00 Car Rental 99.87 8/12/2004 3:03:02 PM 8/19/2004 3:03:00 PM

The issue is that I am trying to get certain data into certain fields - i.e if someone is using an airline and train in travel - then an X should appear in the appropriate box "X Airline" X Train" " Rental Car"


I then need to sum the airline $$, the train $$ etc and pass it to a specific area on the report.

Additionally I am compiling the date/time length of accomodations with this formula:


It works great except - I need to be able to account for each day of the trip individually - and am having trouble breaking it down into travel days. If I stay 1 day at rate x, 2 at rate y and 4 at rate n I should pass 1/2/4 in one field and x/y/n in another -with a summary to the side - .


I think I have gone on long enough - so we will see what interest this draws -I can fill in more as we go on.
 
Can you boil it down to what the relevant data looks like in the database, what you need the report to show, and what the problem is?

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
the text I attached is what I am getting in from the database - and I will email you the report format I need!
 
Can't you get the file into fixed-length format? Then you could use the Mid command to pick up and test the items you need.

It helps to give your Crystal version, since newer versions have extra solutions, and some extra problems. I use Crystal 8.5

Madawc Williams (East Anglia)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top