Solved

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

Posted on 2013-05-16
4
3,508 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
  • 2
4 Comments
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 250 total points
Comment Utility
" 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
Comment Utility
Another voice from the anti-calculated field chorus:

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

Expert Comment

by:Jeffrey Coachman
Comment Utility
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
Comment Utility
"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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now