V
Valerie
Duane, your sample DB has been a great help! It took me some time to relate
it to my situation as I am dealing with multiple tables. I am now at a point
of almost having this solved, but I keep getting an error.
What I have accomplished thus far:
I have a table of names, a table of events and a table with attendees/names
of an event. I wrote a query linking these three tables, as I need to show
an event with all attendees concatenated. From there I created a query that
mimics your "Example of First Names in Family" query. My concantenate
function looks as such:
Attendees: Concatenate("SELECT Name FROM qryEstablishAttendees WHERE
SLBEVNT_CRN =" & [SLBEVNT_CRN])
When I run this query I get the 80040e10 error; "No value given for one or
more required parameters".
Now, for fun I tried this function: Attendees: Concatenate("SELECT Name
FROM qryEstablishAttendees WHERE SLBEVNT_CRN = 'A0049'") A0049 being
one event's primary key (SLBEVNT_CRN). It produced results like this:
A0001 Justin, Valerie, Kelly, Shane
A0002 Justin, Valerie, Kelly, Shane
A0049 Justin, Valerie, Kelly, Shane
and so forth. Those names are the correct names of the attendees for event
A0049, so I must have the concatenate function written properly, with the
exception of why the information after WHERE, is not working properly when I
have it written like this: WHERE SLBEVNT_CRN =" & [SLBEVNT_CRN]) which
mimics your example.
Any ideas?
-Valerie
You would need to add the module containing the function to your MDB. You
can import it or copy and paste the code into an existing or new module.
it to my situation as I am dealing with multiple tables. I am now at a point
of almost having this solved, but I keep getting an error.
What I have accomplished thus far:
I have a table of names, a table of events and a table with attendees/names
of an event. I wrote a query linking these three tables, as I need to show
an event with all attendees concatenated. From there I created a query that
mimics your "Example of First Names in Family" query. My concantenate
function looks as such:
Attendees: Concatenate("SELECT Name FROM qryEstablishAttendees WHERE
SLBEVNT_CRN =" & [SLBEVNT_CRN])
When I run this query I get the 80040e10 error; "No value given for one or
more required parameters".
Now, for fun I tried this function: Attendees: Concatenate("SELECT Name
FROM qryEstablishAttendees WHERE SLBEVNT_CRN = 'A0049'") A0049 being
one event's primary key (SLBEVNT_CRN). It produced results like this:
A0001 Justin, Valerie, Kelly, Shane
A0002 Justin, Valerie, Kelly, Shane
A0049 Justin, Valerie, Kelly, Shane
and so forth. Those names are the correct names of the attendees for event
A0049, so I must have the concatenate function written properly, with the
exception of why the information after WHERE, is not working properly when I
have it written like this: WHERE SLBEVNT_CRN =" & [SLBEVNT_CRN]) which
mimics your example.
Any ideas?
-Valerie
You would need to add the module containing the function to your MDB. You
can import it or copy and paste the code into an existing or new module.