It makes a big difference if you have groups. The page header takes it's value from the first (active) record on the page, and the page footer from the last. So if you don't have any groups you could use 2 formulas:
PH:
WhilePrintingRecords;
STringVar first:= {Customer.Customer Name}
PF:
WhilePrintingRecords;
STringVar first;
first + ' to ' + {Customer.Customer Name}
However, if you have groups, whenever the group footer starts a page the Page Header will still be reading the last value on the previous page. You would need to 'capture' the name in the first detail line, not the page header. So with groups you shoud use 3 formulas:
PH:
WhilePrintingRecords;
BooleanVar TopPage:= True;
Detail:
WhilePrintingRecords;
BooleanVar TopPage;
STringVar first;
If TopPage
then (first:= {Customer.Customer Name}; TopPage:=False)
PF:
WhilePrintingRecords;
STringVar first;
first + ' to ' + {Customer.Customer Name}
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com