Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move Layout property

Status
Not open for further replies.

jgarnick

Programmer
Feb 16, 2000
189
US
I've posted this before and someone suggested using the move layout property, but I haven't figured out how to use that property.&nbsp;&nbsp;Help is not much help!<br><br>I need to have a report that is formatted as such:<br><br>Joe Smith&nbsp;&nbsp;1997,1998,1999<br>Mary Brown 1983, 1987<br><br>instead of:<br><br>Joe Smith&nbsp;&nbsp;1997<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1998<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1999<br>Mary Brown 1983<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1987 <br><br>Each year is a separate record in a table.<br><br>If movelayout won't accomplish this, is there a way to write code to have all the years for a particular id number combined into one field to be used on the report?<br><br>Thanks!! <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I'm not sure I'm getting the concept here, can you give a more specific table layout?&nbsp;&nbsp;How exactly does the id number relate to the years?&nbsp;&nbsp;Is it two tables that relate to one another or one single table containing all of the info?&nbsp;&nbsp;If you can give me more maybe I can help...good luck. =]
 
Thanks for responding. The report is based on two tables that are related by id number.&nbsp;&nbsp;The relationship is a one to many. Table A has the name and table B has all the years of residencies.&nbsp;&nbsp;I need my report to list each person's years of residencies.&nbsp;&nbsp;Since each year of residency is a separate record in Table B, there can be multiple detail lines per person, but the report prints them line by line.&nbsp;&nbsp;I would like the years of residency side by side to not waste so much paper.<br><br>Under the Onformat property for the year of residency field in the detail section, I set the Movelayout property to False in code.&nbsp;&nbsp;I also set the Nextrecord property to True.&nbsp;&nbsp;It causes the years to overlap one another.&nbsp;&nbsp;I don't know how to get the years to print side by side separated by a comma preferrably.<br><br>The other way I thought of doing it would be to run through table B and gather all the years of residency by id number into another field.&nbsp;&nbsp;I'm not sure if that makes sense to do it that way or even how!<br><br>Thanks for helping me! <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>
 
Hasn't anyone out there used the Movelayout property and could help me?? <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>
 
Not sure it is exactly what you want but I have been able to make reports look similar to what you are asking for by using colums on a report. If you click on page set up and click on the colums tab then click on the go across and then down check box. Based on your groupings and such you can come pretty close to the look you want.
 
Thanks glo4, but I couldn't get it to work using columns.&nbsp;&nbsp;<br><br>Any other ideas anyone???&nbsp;&nbsp;I know there has got to be a way!<br>&nbsp; <p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br>
 
Send me an email and I will send you an example report. <p>Jim Conrad<br><a href=mailto:JimConrad@Consultant.com>JimConrad@Consultant.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top