Solved

Move fields up or down

Posted on 2012-03-26
6
486 Views
Last Modified: 2012-04-01
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?
0
Comment
Question by:pelon_80
  • 3
  • 2
6 Comments
 
LVL 25

Expert Comment

by:TempDBA
ID: 37767931
you need to check the value in Address2 and based on the presence of data, you need to write two insert statments.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 37768433
Is this in the report or in the SQL?

mlmcc
0
 

Author Comment

by:pelon_80
ID: 37768535
it is a report
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 100

Expert Comment

by:mlmcc
ID: 37768754
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
0
 

Accepted Solution

by:
pelon_80 earned 0 total points
ID: 37772055
It okay what I did is create two formulas and according to Address 3 I put Name, Address and City, State and zip in the 2 formula and if there is a second Address field I put the Name, Address 1, Address 2 and City, State and Zip in the other formula 1
0
 

Author Closing Comment

by:pelon_80
ID: 37792650
It worked for me.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now