Results 1 to 4 of 4
  1. #1
    Historypaul is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    64

    Need to return an array to display data vertically in a report

    I need something like the dlookup function, but I need it to test for how many records there are that match the criteria and return the value in a field from multiple records or loop until it returns a null and display the same field from all records that match the criteria I give it. I've seen a lot of dlookup alternative custom functions out there. I just can't find this one in particular.

    I have a parent table and a child table. I'm trying to create a report that shows the parent info and the child info all on one line for each parent record. The quantity of records in the child table that relate that particular record on the parent table varies.



    Maybe more clearly, I'd like to return an array made up of the same field from multiple records that match the criteria...

  2. #2
    Historypaul is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    64
    I really wish I could change the "vertically" to "horizontally" in the title of this post... Sorry.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  4. #4
    Historypaul is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    64
    Thank you, Orange. I'll read that one. It gets a little in-depth. I've been working on the problem already, and I've ended up so far with a crosstab query, then a join query to put those results on a single line with related tables results. It's working pretty good so far.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2013, 04:59 PM
  2. Replies: 7
    Last Post: 10-18-2012, 12:49 PM
  3. Vertically Dynamic Report
    By chris.williams in forum Reports
    Replies: 1
    Last Post: 09-05-2012, 08:11 PM
  4. Replies: 4
    Last Post: 05-25-2012, 09:43 AM
  5. Replies: 6
    Last Post: 02-20-2009, 11:50 AM

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