|
|
Error in Creating Calculated Field
My database (Access 2003) has a table which contains employee-wise,
month-wise activity-wise (knowledge management, Administrative tasks, Idle,
etc) data.
Using a cross-tab query I am able to analyse what is the time spent by each
employee, each month amongst different activities.
Since the number of activities is large and some of them are partly
overlapping I require to combine some of the columns in the cross-tab query.
However, when I tried to create a calculated field in a separate select
query based on the cross - tab query to combine the activities "Leave" and
"Leave (part of the day)", the calculated field returned a value only when
there were values for both the fields in the cross - tab query and not when
either one of them was blank.
How do I ensure that calculated field sums the two columns irrespective of
whether one of them is blank?
|
|
0
|
|
|
|
Reply
|
Utf
|
10/10/2007 1:26:02 PM |
|
It may be that the Nz function will take care of the problem:
NewField: Nz([Field1],0) + Nz([Field2],0)
See help for more information about Nz. The problem may come when one of
the fields is Null, which can be thought of as Unknown. Unknown plus a
number is still Unknown. Nz converts the null to 0.
It usually helps when posting a problem such as this to show exactly what
you have tried (in this case, the expression that did not produce the
intended result).
"alphaorionis57" <alphaorionis57@discussions.microsoft.com> wrote in message
news:26C0E4C9-9FBE-4E4D-B68D-0DED5D7E43FC@microsoft.com...
> My database (Access 2003) has a table which contains employee-wise,
> month-wise activity-wise (knowledge management, Administrative tasks,
> Idle,
> etc) data.
> Using a cross-tab query I am able to analyse what is the time spent by
> each
> employee, each month amongst different activities.
> Since the number of activities is large and some of them are partly
> overlapping I require to combine some of the columns in the cross-tab
> query.
> However, when I tried to create a calculated field in a separate select
> query based on the cross - tab query to combine the activities "Leave" and
> "Leave (part of the day)", the calculated field returned a value only when
> there were values for both the fields in the cross - tab query and not
> when
> either one of them was blank.
> How do I ensure that calculated field sums the two columns irrespective of
> whether one of them is blank?
|
|
0
|
|
|
|
Reply
|
BruceM
|
10/10/2007 2:11:21 PM
|
|
|
1 Replies
227 Views
(page loaded in 0.057 seconds)
Similiar Articles: How to create Access 2010 Calculated field using VBA ? - microsoft ...Is there a way to create a Calculated field in Access 2010 table using VBA ? ... Exit Sub Proc_Err: MsgBox Err.Description, , _ "ERROR ... How do I remove a Calculated Field from the Pivot Table field list ...I have created two fields in my Pivot Table. However, the first one had an error in it. ... How do I create a calculated field on the Total in a pivot table ... How do I create a calculated field on the Total in a pivot table ...... attempt to create a formula =counta('Name - Full')*4.59 I get an error ... Excel Pivot Table Calculated Field Create calculated field in pivot table, and remove ... Calculated Fields in SQL2005 from Access 2000? - microsoft.public ...Sum error on continous subform - microsoft.public.access.forms ... Is ... Creating Calculated Fields in Access Queries and Reports Creating Calculated Fields in Access ... Calculated query field will not filter - microsoft.public.access ...I understand what you are saying about the text field producing error. As there ... calculated field - microsoft.public.crm How to create a calculated field ! MS Access 2007: Calculated field based on subform: - microsoft ...... to count the records in the related subform, but all > I > get is "error". ... Calculated field based on subform: - microsoft ... > I am trying to create a calculated field ... create View showing a conditional field - microsoft.public ...How can I create in a view, a calculated field (name) that depends from other field (value) as ... What error message did you get? (And you did not use the > View ... error msgs creating a recordset in VBA for a form combo box ...error msgs creating a recordset in VBA for a form combo box Follow ... I did not think I could index a calculated field in a query. I have had to make ... Calculated field in a query access Project - microsoft.public ...HI I need to create a calculated field in a query in an Access ... Overflow error on calculate field in query - Help Please ... Calculated a field in a subform ... Calculated a field in a subform. - microsoft.public.access.forms ...Sum error on continous subform - microsoft.public.access.forms ... Is ... Creating a calculated field using dates in a form - microsoft ... MS Access 2007: Calculated ... Calculated Field ErrorHello, I am getting an error when creating a calculated field. The field is supposed to take a phone number and replace the period's with dash's. ie. 403 ... Create a Calculated Field - YouTube8:48 Watch Later Error Creating a calculated Field in Microsoft Access by JonAWF 6,287 views; 4:46 Watch Later Error Access - Total Query using WHERE by ... Calculated Field FormulasIn such countries, users creating a calculated field must use semi-colons ";" as the delimiter ... To display a dash, #N/A, or NA in place of an error value, use the ISERROR ... I see #Error displayed in a control - Access - Office.comWhen a calculated field results in a value that ... referencename> reference, and then create ... Valid Sum() Function Returns #Error? in Calculated Control; ACC2000: Field ... SmartList Builder and creating Calculated Fields with Extender data... ran into a case where the partner was creating a SmartList Builder calculated field ... Dynamics GP ActiveX component can't create object run-time error 429 ... 7/8/2012 3:24:50 PM
|
|
|
|
|
|
|
|
|