K
kasab
I'm trying to generate a summary of loan rights from several fields in the
one record of a loans table and then combine this expression using Dwayne
Hookum's CombineChildRecords function for all records for the same library.
(I have not been able to access the link to Rogers Access library =
http://www.rogersaccesslibrary.com/...Generic Function To Concatenate Child Records'
as posted in this newsgroup. HIs index does not list this under "G" or other
places either. Can anyone else?)
The expression is used in a query, entered into the Expression Builder:
Borrowing rights: CombineChildRecords("LOANS", "[LOANS]![group] & ': ' &
[LOANS]![items] & IIf([LOANS]![fee]=0,'',' ($' & [LOANS]![fee] & '.00)') &
IIf([LOANS]![items]='party hire','',' for ') & [LOANS]![duration] & '.' ",
"LOANS!TLid", [LIBRARY]![ID], "; ")
LOANS is the table I want to extract the information from, LIBRARY is parent
in a 1:many relationship with the LOANS table, group, items, fee and duration
are fields of the LOANS table; ID is primary key of LIBRARY; TLid is part of
the primary key of the LOANS table (links is on these 2 fields).
Is it possible to use the CombineChildRecords function for an expression? If
so, what am I doing wrong, please.
Thanks!
one record of a loans table and then combine this expression using Dwayne
Hookum's CombineChildRecords function for all records for the same library.
(I have not been able to access the link to Rogers Access library =
http://www.rogersaccesslibrary.com/...Generic Function To Concatenate Child Records'
as posted in this newsgroup. HIs index does not list this under "G" or other
places either. Can anyone else?)
The expression is used in a query, entered into the Expression Builder:
Borrowing rights: CombineChildRecords("LOANS", "[LOANS]![group] & ': ' &
[LOANS]![items] & IIf([LOANS]![fee]=0,'',' ($' & [LOANS]![fee] & '.00)') &
IIf([LOANS]![items]='party hire','',' for ') & [LOANS]![duration] & '.' ",
"LOANS!TLid", [LIBRARY]![ID], "; ")
LOANS is the table I want to extract the information from, LIBRARY is parent
in a 1:many relationship with the LOANS table, group, items, fee and duration
are fields of the LOANS table; ID is primary key of LIBRARY; TLid is part of
the primary key of the LOANS table (links is on these 2 fields).
Is it possible to use the CombineChildRecords function for an expression? If
so, what am I doing wrong, please.
Thanks!