• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5288
  • Last Modified:

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

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
mlagrange
Asked:
mlagrange
  • 2
2 Solutions
 
Jeffrey CoachmanMIS LiasonCommented:
" 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
 
Patrick MatthewsCommented:
Another voice from the anti-calculated field chorus:

http://allenbrowne.com/casu-14.html
0
 
Jeffrey CoachmanMIS LiasonCommented:
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
 
mlagrangeAuthor Commented:
"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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now