Mandu Posted February 18, 2007 Share Posted February 18, 2007 Once again I'm flummoxed by a simple sliding problem. I just want a List view with a Name on the left, and up to three phone numbers, arranged vertically, to the right. Joe Smith___111-2222 ____________222-2222 ____________333-3333 (Underscores are shown here to maintain horiz. spacing in this posting. In the actual application this is just white space) I want the phone numbers to slide upward, and I want the row height (the body) to be reduced, when some of the numbers are missing. Currently Joe Smith is a text box with <> merged, and the telephone numbers are a single text box with <> <> <> merged. Both text boxes are marked Sliding / based on directly above only / also reduce size of enclosing part. Here's what I've seen in preview mode when different combinations of phone numbers are blank. ('=' designates row breaks) ================ Joe Smith___111-1111 correct ____________222-2222 ____________333-3333 ================ Joe Smith___111-1111 also correct; ph2 was blank ____________333-3333 ================ Joe Smith___111-1111 wrong, ph3 was blank ____________222-2222 ================ Joe Smith___111-1111 wrong, ph2 and ph3 were blank ================ Has anyone got a clue what's going on? Thanks, Chap Link to comment Share on other sites More sharing options...
LaRetta Posted February 18, 2007 Share Posted February 18, 2007 Merge fields won't slide on their own ie won't omit empty fields within the merge box. Instead, you might try a calculation (text) with: Substitute ( TrimAll ( Ph1 & " " & Ph2 & " " & Ph3 ; 1 ; 1 ) ; " " ; ¶ ) Then place this calculation on your report. Format it to allow 3 lines and set it to slide up. LaRetta Link to comment Share on other sites More sharing options...
Mandu Posted February 22, 2007 Author Share Posted February 22, 2007 (edited) Thanks! Works well. Since there is the possibility of spaces appearing in telephone numbers (e.g. number followed by "ext. 39") I didn't use the Substitute(TrimAll(...)) technique. Maybe there's a "list collapsing" function somewhere which would remove empty items from a list and provide a more general solution? Anyway - it works. Edited February 22, 2007 by Guest Link to comment Share on other sites More sharing options...
Raybaudi Posted February 22, 2007 Share Posted February 22, 2007 Hi if there are some spaces inside those fields, this calc may be better: Substitute ( TrimAll ( Substitute ( Ph1 & ¶ & Ph2 & ¶ & Ph3 ; [ " " ; "§" ] ; [ ¶ ; " " ] ) 1 ; 1 ) ; [ " " ; ¶ ] ; [ "§" ; " " ] ) Link to comment Share on other sites More sharing options...
LaRetta Posted February 23, 2007 Share Posted February 23, 2007 See the paternal father's calc here . LaRetta Link to comment Share on other sites More sharing options...
Raybaudi Posted February 23, 2007 Share Posted February 23, 2007 Hi LaRetta yes...comment have given so much ! : Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6272 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now