Solved

Calculated field in a table

Posted on 2013-11-23
2
246 Views
Last Modified: 2013-11-23
I'm trying to include a calculated field in table design.  The fields I'm using for the calculation are:

[LeadFromEd]+[AgentLead]+[CommissionSoldListing]

But I'm also trying to account for empty values by using:

Nz([LeadFromEd],0)+Nz([AgentLead],0)+Nz([CommissionSoldListing],0)

But it won't let me.  I get an error that reads,

The expression Nz([LeadFromEd],0)+Nz([AgentLead],0)+Nz([CommissionSoldListing],0) cannot be used in a calculated column.

????

--Steve
0
Comment
Question by:SteveL13
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39671485
this is not a good  idea.

you can always derived a calculated column using a query.
0
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 39671509
I agree with capricorn1 that it is not a good idea. If you need the values, use a query to determine your derived columns. It violates normalization rules.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

895 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

11 Experts available now in Live!

Get 1:1 Help Now