Results 1 to 4 of 4
  1. #1
    stephen c is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    30

    Concatenating from a table or query.


    Hello, all.

    This should be simlple, but isnt'. My database uses a query to constrain information used in all of it's reports. The user chooses what "buildings" he or she wants included in the reports. Those choices are accumulated into a query with only one field...BUILDING.

    The problem is that nowhere on the form do the reports say "This report is for buildings x, y, z."

    Let's make it easier, and say that these selections create a table which contains only one field...BUILDINGS, where there is a record for each building selected.

    How do I get a concatenated field that shows which buildings are contained in the table?

    This seems easy. In EXCEL, the buildings would be in A1, A2, A3, and it would just be concatenate(A1,A2,A3).

    I am very much a newbie, who has tought himself how to use access for the purpose of this database. Over the last two weeks. As such, I'm logically fairly adept, but not versed in VB at all.

    Many thanks in advance.

    Stephen.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You could pass this information to the report in the OpenArgs argument of the OpenReport command.

  3. #3
    stephen c is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    30

    Still need help

    I hope not to sound like a jerk with this answer, but I predicated the question with the statement that I'm a newbie. As such, I do need a wee bit more direction.

    Thanks!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The OpenArgs parameter of the OpenReport command is a string value. Are you running the report directly from your form? If so, do you use code or a macro? If code then could you post the procedure starting with Private?

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

Similar Threads

  1. Query on a linked table?
    By SilverSN95 in forum Queries
    Replies: 1
    Last Post: 09-26-2009, 03:00 PM
  2. Concatenating many fields into one field
    By olidav911 in forum Programming
    Replies: 1
    Last Post: 08-13-2009, 05:14 AM
  3. Query two different records in the same table
    By Eildydar in forum Access
    Replies: 5
    Last Post: 04-15-2009, 01:39 PM
  4. Using same query with different table
    By fashoda in forum Queries
    Replies: 1
    Last Post: 12-14-2005, 12:05 AM
  5. Use same query with different table
    By fashoda in forum Access
    Replies: 1
    Last Post: 12-09-2005, 08:44 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