Link to home
Start Free TrialLog in
Avatar of pelon_80
pelon_80Flag for United States of America

asked on

Move fields up or down

I have 4 textboxes which have a print name, address1, address2 and address3.  I have added another textbox making it 5 total fields.  I want to be able to move the fields down or up one depending on the address2 field is not filled initially. In the stored procedures I have coalesced the Address2 if there is no Address in the Address2 field I am inserting the City, State and Zip into that field. IF there is  an address in Address2 field then I move the cit, state and zip to Address3 field. How can I move the fields up one or down one?
Avatar of TempDBA
TempDBA
Flag of India image

you need to check the value in Address2 and based on the presence of data, you need to write two insert statments.
Avatar of Mike McCracken
Mike McCracken

Is this in the report or in the SQL?

mlmcc
Avatar of pelon_80

ASKER

it is a report
If you put each field in its own section you can then suppress the blank sections and the fields will move up.

Right click the details section in the left margin
Click INSERT SECTION BELOW
Repeat 3 times

In DetailsA put the name
DetailsB - Address1
DetailsC - Address2
Details D - Address3
DetailsE - City, State, etc

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of pelon_80
pelon_80
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It worked for me.