I\'m looking for an Access 2007 equivalent to SQL Server\'s COALESCE function.
In SQL Server you could do something like:
Person
<
Although Nz does a comparable thing to COALESCE, you can't use it in Access to do the operation you are performing. It's not the COALESCE that is building the list of row values, it's the concatenatiion into a variable.
Unfortunately, this isn't possible inside an Access query which has to be a single SQL statement and where there is no facility to declare a variable.
I think you would need to create a function that would open a resultset, iterate over it and concatenate the row values into a string.