+ Reply to Thread
Results 1 to 3 of 3

Display CopyFromRecordset result vertically

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    2

    Display CopyFromRecordset result vertically

    Hello and Good day Masters, I have this vba code that copies my student grades from access database then display or print it on my excel file. It prints the grades horizontally however is it possible to display or print the output vertically?

    Here's the current output
    99 98 79 95 95 90 99 95 96

    And I want to achieve something like this one
    99
    98
    79
    95
    95
    90
    99
    95
    96


    Here's my code:
    Please Login or Register  to view this content.
    Any suggestions will be greatly appreciated. Thank you very in advance.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Display CopyFromRecordset result vertically

    Hello Nethead21,

    Welcome to the forum!

    You are returning a single record, i.e. one row and multiple columns. You can either Transpose the data or step through it with a For Next loop and increment BQ13 for each field (column) in the record set.

    You also posted this same question Display CopyFromRecordset result vertically in another forum.

    Please read the forum rules about cross-posting.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-25-2017
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    2

    Re: Display CopyFromRecordset result vertically

    My apologies I was not aware of cross-posting rules, anyway thank you for responding.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Data display vertically
    By arunku in forum Excel General
    Replies: 2
    Last Post: 11-14-2017, 02:30 PM
  2. vertically display linked list
    By liselbez in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2017, 07:59 AM
  3. [SOLVED] Two way look up and display all results vertically.
    By holli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2016, 01:41 AM
  4. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  5. [SOLVED] How to display many results vertically
    By holli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2015, 09:49 PM
  6. [SOLVED] Displaying more than one result vertically
    By holli in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2015, 02:19 AM
  7. Replies: 2
    Last Post: 11-18-2013, 03:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1