Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114

    Populate Report From Table

    I am wanting to have a "template" report for example called "_Template" that has the static text and beside the text have values that would be pulled from fields in the table, something like the below
    First Name: tblInfo.firstname
    Last Nane: tblInfo.lastname
    Address: tblInfo.address
    Phone: tblInfo.phone


    And have that set-up in a rectangular "grid" format so that it would look similar to the below
    1 2
    3 4


    5 6

    And each # in the above would be populated with a different row in the table.

    How would I go about setting this up?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Pretty much the same way you build a form.

    Set report RecordSource property. Put labels and textboxes on report and arrange them as you prefer. Set textbox ControlSource property to a field or expression. Use labels and or textboxes for the static text.

    Where do those numbers come from - data in table?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    The numberrs waz just a layout example to show that I woudl expect 6 rows from the table per "page" on the report. I know that will be formatting I will need to set-up on the report itself, but was just for visualization.

    I want the report to layout like this - AND each of the below would show data from a different row.
    First Name: tblInfo.firstname First Name: tblInfo.firstname
    Last Nane: tblInfo.lastname Last Nane: tblInfo.lastname
    Address: tblInfo.address Address: tblInfo.address
    Phone: tblInfo.phone Phone: tblInfo.phone

    First Name: tblInfo.firstname First Name: tblInfo.firstname
    Last Nane: tblInfo.lastname Last Nane: tblInfo.lastname
    Address: tblInfo.address Address: tblInfo.address
    Phone: tblInfo.phone Phone: tblInfo.phone

    First Name: tblInfo.firstname First Name: tblInfo.firstname
    Last Nane: tblInfo.lastname Last Nane: tblInfo.lastname
    Address: tblInfo.address Address: tblInfo.address
    Phone: tblInfo.phone Phone: tblInfo.phone

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Looks like you want a multi-column report snaking right then down.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    Yes - That is exactly what I Needed. Thank you for interpreting my insanity here.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Access reports have that as a design feature.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    @June7 - I set the columns = 2 and Column Layout to Across then down - but I get an error of there is not enough horizontal space to display all the data.

    Can I excuse my laymans terms "delete the fields", set-up the report like I want, then add them back in? That way I Get the exact layout I am after?

    EDIT ---
    I set it to show 2 columns, but it is only showing 1. And if I copy/paste the fields to show it on the same line twice, the data is duplicated, it does not iterate to the next record.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    According to your example, should be only four textboxes arranged vertically.

    Delete textboxes? Sure. Not sure how that will help but go ahead and try.

    Adjust column and margin spacing and see if that helps.
    Last edited by June7; 09-15-2017 at 10:57 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    Yes, it is 4 textboxes arranged Horizontal - 1 group of 4 in each number sequence is what I am after
    1 2
    3 4
    5 6

    I am only getting data output in 1, 3, and 5

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    4 textboxes arranged vertical

    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    If I arrange them vertical same output. I would have data only in left column, never in the right.

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Then something else is wrong with the column settings because it works perfectly for me.

    What is the column width?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  13. #13
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    Column Spacing .25"
    Column Size Width: 8.0833"

  14. #14
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Change the width to 3", not the full width of printing area.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  15. #15
    chalupabatman is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    114
    Changing column width to 3 still only populates the left column

    And if it matters the field types are short text.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 29
    Last Post: 05-02-2017, 04:38 PM
  2. Populate Report with Table from Query
    By Ekhart in forum Reports
    Replies: 2
    Last Post: 08-26-2016, 08:21 AM
  3. Value to populate in Report
    By Alex Motilal in forum Programming
    Replies: 2
    Last Post: 03-31-2016, 10:54 PM
  4. Replies: 4
    Last Post: 12-09-2015, 09:02 AM
  5. Replies: 3
    Last Post: 03-11-2015, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums