Mar 28, 2001 #1 khurram IS-IT--Management Jan 10, 2001 95 CA I have a situation where I have information being display in one row across columns like this: <TR> <CFOUTPUT> <TD>Employees</TD> </CFOUTPUT> </TR> However, I want the output to on the next row for every three employee names. Any suggestions.
I have a situation where I have information being display in one row across columns like this: <TR> <CFOUTPUT> <TD>Employees</TD> </CFOUTPUT> </TR> However, I want the output to on the next row for every three employee names. Any suggestions.
Mar 28, 2001 #2 Klotzki Programmer Apr 10, 2000 25 PH Hehe. I remember figuring this one myself not long ago. The trick is to do a little bit of programming. Make your code something like this. Hope this helps. Klotzki -------------------------------------------- <!--- Set Column Counter ---> <CFSET ColCount = 0> <TR> <CFOUTPUT> <CFSET ColCount = ColCount + 1> <TD>#Name#</TD> <CFIF ColCount EQ 3> <!--- Do this only if there are other records ---> <CFIF qryEmployees[CurrentRow] LT qryEmployees.RecordCount> </TR> <TR> <!--- reset ColCount ---> <CFSET ColCount = 0> </CFIF> </CFIF> </CFOUTPUT> </TR> Klotzki Upvote 0 Downvote
Hehe. I remember figuring this one myself not long ago. The trick is to do a little bit of programming. Make your code something like this. Hope this helps. Klotzki -------------------------------------------- <!--- Set Column Counter ---> <CFSET ColCount = 0> <TR> <CFOUTPUT> <CFSET ColCount = ColCount + 1> <TD>#Name#</TD> <CFIF ColCount EQ 3> <!--- Do this only if there are other records ---> <CFIF qryEmployees[CurrentRow] LT qryEmployees.RecordCount> </TR> <TR> <!--- reset ColCount ---> <CFSET ColCount = 0> </CFIF> </CFIF> </CFOUTPUT> </TR> Klotzki