I am wondering how I can either use multiple or the same select statement to to insert data into a temporary table and then select data out of the temporary using the same query.
SELECT ADDRESS INTO tempTable FROM LOCATION,
SELECT AddrFMT([ADDRESS]) AS ADDRESS1 FROM tempTable;
Thanks everyone!
Disclaimer: I can’t speak for MS Access, but this answer will apply to SQL Server.
Maybe I am misunderstanding your question, or you’re using the word “query” loosely, but you can make this two statements. You wouldn’t be using the comma (
,) that you have in your original question. You create the temp table in your first batch and then as long as the connection has persisted you can then select off of the temp table (and use a function as it seems you are doing).This is valid and typical.
EDIT
EDIT 2