I need a little help with mnesia queries. I want to parameterise the query but can't seem to find any examples of how to do that. The general form seems to be qlc:q([X#rec.bar || X <- mnesia:table(foo), X#rec.bar == baz]) If I now want to select columns at run time is there some way I can construct the left side of the qlc. Thanks Bob