E
Ed B
Hi everyone,
I have a series of queries that append data from a number of source tables
into one destination table. I would like to add two fields to the
destination table e.g.
WhereDataCameFrom Text 50
WhenDidItGetHere Date/Time
and have the source queries populate these fields whenever they are run.
The Date/Time is no problem: I'l just use DataGotHere:Now() in the SELECT
statement and append that into [WhenDidItGetHere] in the destination table.
However, is it possible for an Append query to "know it's own name" other
than me going through and explicitly typing in the name into the query such
as SourceQueryName:"<NameOfThisQuery>" in the SELECT statement?
In other words, how can a query "lookup it's own name?"
Thanks in advance,
Ed
I have a series of queries that append data from a number of source tables
into one destination table. I would like to add two fields to the
destination table e.g.
WhereDataCameFrom Text 50
WhenDidItGetHere Date/Time
and have the source queries populate these fields whenever they are run.
The Date/Time is no problem: I'l just use DataGotHere:Now() in the SELECT
statement and append that into [WhenDidItGetHere] in the destination table.
However, is it possible for an Append query to "know it's own name" other
than me going through and explicitly typing in the name into the query such
as SourceQueryName:"<NameOfThisQuery>" in the SELECT statement?
In other words, how can a query "lookup it's own name?"
Thanks in advance,
Ed