Someone brought up an intriguing question, so I thought to inquire among the peer group here:
Is there a way for a SQL QueryDef object in Access to look up the name of itself in the SQL and return that as a value in the result set?
Ex:
Is there a way for a SQL QueryDef object in Access to look up the name of itself in the SQL and return that as a value in the result set?
Ex:
Code:
SELECT [foo],
[bar],
[something]
@NameOfQueryDef
FROM [table]