Results 1 to 6 of 6

Thread: make records go left to right, not top to bottom?

  1. #1

    Thread Starter
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401

    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

  2. #2
    Lively Member
    Join Date
    Oct 2002
    Location
    Los Angeles, CA
    Posts
    73
    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.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    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.

  5. #5
    Lively Member
    Join Date
    Oct 2002
    Location
    Los Angeles, CA
    Posts
    73
    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

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    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
  •  



Click Here to Expand Forum to Full Width