MS Access 2010 SQL Select Into Calculated Column Issue

天涯浪子 提交于 2019-12-02 05:17:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!