|
-
Apr 20th, 2004, 10:21 PM
#1
Thread Starter
Hyperactive Member
make records go left to right, not top to bottom?
I have tow tables:
tabe1 and table2. for each record in table1 there can be multiple records in table2.
I am trying to write a report and instead of each of table2's rows going down the page, i want them to start at the left, and go accross to the right ( i only want 6 of them so it won't run off the page).
does this make sense? is there a way to do this?
"The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.
Windows & Web Developer
Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
Sutherland Shire, Sydney Australia
www.stingrae.com.au
Developer of Arnold - Gym & Martial Arts Database Management System
www.gymdatabase.com.au
-
Apr 21st, 2004, 12:41 PM
#2
Lively Member
I would create a query(stored procedure) to combine table1 and table2, so that all records in table2 would become vertical columns
(as you said it will be 6 additional columns), then create your report against new query/stored procedure and report itself will be straightforward task.
-
Apr 21st, 2004, 01:09 PM
#3
Sounds like you need to do a Cross Tab query.
What is your db in? Access or SQL or ???
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 21st, 2004, 04:26 PM
#4
The Details section can be used to print multiple columns.
Open the Section Expert (Format -> Section menu item or right-click on the details section name and choose Format Section).
Select Details in the section list.
On the Common tab check the Format with Multiple Columns option. A new tab called Layout will become visible.
Enter the required information for your needs.
-
Apr 21st, 2004, 05:14 PM
#5
Lively Member
If you use SQL database, then no doubts you should modify data, by rotating table 2 and combining with table 1 and you do not have to jump through the hoops with Crystal
see info on table rotation :
http://support.microsoft.com/default...NoWebContent=1
-
Apr 21st, 2004, 05:40 PM
#6
That rotating example is fine if Table2 contained the exact same number of rows for each record in Table1.
I understood the original post to mean that table2 may contain 0 to X number of rows per table1 record. There is room to place 6 table2 records on a line. So if table2 contained 30 records, instead of using 30 lines, only 5 lines would be needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|