Print Page | Close Window

Generic Function To Concatenate Child Records

Printed From: Roger's Access Library
Category: Other Download Libraries
Forum Name: Hookom, Duane
Forum Description: Duane Hookom's Library
Printed Date: 17 Jan 2022 at 11:19am
Software Version: Web Wiz Forums 12.03 -

Topic: Generic Function To Concatenate Child Records
Posted By: Duane Hookom
Subject: Generic Function To Concatenate Child Records
Date Posted: 23 Jun 2008 at 11:03pm

This file contains a concatenate function and samples of how to use it. The function creates a single, delimited list of the "many" records from a 1-to-many relationship. The delimiter defaults to a comma but can be specified. The function can be easily modified to use either DAO or ADO by commenting or un-commenting some lines of code.

A table with records like:
  ABC Co.      Bob
  ABC Co.      John
  ABC Co.      Sarah
  ABC Co.      Aaron
can be converted to:
  ABC Co.      Bob, John, Sarah, Aaron
  ABC Co.      Bob - John - Sarah - Aaron

Download Access 2000: - uploads/4/

Duane Hookom
Microsoft Access MVP
Eau Claire, WI

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 -
Copyright ©2001-2019 Web Wiz Ltd. -