Skipping blank fields
Hi
I would like to be able to 'skip' fields if they are blank. For example if i have fields:
name
address1
address2
town
county
postcode
and some of my data is missing, for example, address2, i get:
Mr Smith
2 Queens Road
Morden
Surrey
SM4 5DF
What I would like is if town,county and postcode were 'moved up' to fill the blank space.
Is this possible and if so how would I do it?
I've searched through the manuals but I can find no refrence to this.
Thanks for the help
Pete
I would like to be able to 'skip' fields if they are blank. For example if i have fields:
name
address1
address2
town
county
postcode
and some of my data is missing, for example, address2, i get:
Mr Smith
2 Queens Road
Morden
Surrey
SM4 5DF
What I would like is if town,county and postcode were 'moved up' to fill the blank space.
Is this possible and if so how would I do it?
I've searched through the manuals but I can find no refrence to this.
Thanks for the help
Pete
Comments
1) To create two Child Band's.
2) On MasterData to place all Memo which go up to the first address switching him.
3) To place the second address on Child1, and all rest on Child2.
4) To establish properties MasterData. Child - Child1 and Child1. Child - Child2.
5) In MasterData to include event OnBeforePrint and in him to write:
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
if (<frxDBDataset1."Addr2"> = '') then {Database and Fields}
begin
MasterData1.child := Child2;
Child1.Child := nil;
end
else
if MasterData1.child = Child2 then
begin
MasterData1.child := Child1;
Child1.child:= child2;
end;
end;
Thanks for the reply, although I must admit I didnt understand it
I did solve the problem though by doing some processing and:
creating a stringlist
adding the data from my address fields to the string list:
Then adding a memo with variables:
Then assigning varables as normal:
It doesnt seem a very elegant solution but it appears to work for me.
Hope it helps someone else too
Pete