Solved

A calculated column cannot be saved without a valid expression in the Expression property

Posted on 2013-05-16
4
4,095 Views
Last Modified: 2013-05-16
I just tried to run a MakeTable query that uses a table that has a calculated field, and got this error. Where is this "Expression property"?

The calc field works fine in the Select query...

Thanks
0
Comment
Question by:mlagrange
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 250 total points
ID: 39171698
" a table that has a calculated field,"

Again, another "feature" that is "cool" but sometimes creates problems...

1. You should not be making a table that contains a calculated field (derived data).
Just make the table and do the calculation in a query (Not in the new "calculated" table datatype)


2. Besides, when I try to do this (run a Make table query based on a table with a calculated field), I get the error:
"Calculated Columns are not allowed in SELECT INTO Statements"

So again, these new datatypes are cool, but they just create too much confusion/frustration sometimes...

JeffCoachman
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 250 total points
ID: 39171772
Another voice from the anti-calculated field chorus:

http://allenbrowne.com/casu-14.html
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39171821
To be fair, I know that sometime it is needed to Store calculated data.

This is why it is sometimes helpful if you state the need for doing this...

;-)

JeffCoachman
0
 

Author Comment

by:mlagrange
ID: 39172275
"the anti-calculated field chorus" - that's funny!
ok, thanks - that's what I've always done in the past (query that does all the calc's)
I was just hoping that M$ had actually provided something useful, but I should have known better. SQL Server has had "Computed Columns" since, what? version 2000?
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question