Solved

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

Posted on 2013-05-16
4
3,904 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

828 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