问题
I have a pretty extensive Union query with calculated columns that I'm trying to just "paste values" into a table through a separate SELECT INTO query. I get the error below when executing the query. Is there any way around this without using VBA?
“Calculated columns are not allowed in SELECT INTO statements.”
For context: Normally, I'd be able to link up to the union query through PowerPivot in Excel but for some reason PowerPivot does not recognize the union query. If I export the union query then import as a table, PowerPivot recognizes it.
回答1:
Thanks to @HansUp for the help.
I set up a blank table with the appropriate headers from the UNION query and used an INSERT INTO query rather than a SELECT INTO to get the UNION query data into the table.
来源:https://stackoverflow.com/questions/30240833/ms-access-2010-sql-select-into-calculated-column-issue