PC Review


Reply
Thread Tools Rate Thread

Make table query with derived fields

 
 
=?Utf-8?B?QW5keQ==?=
Guest
Posts: n/a
 
      20th Sep 2005
I am trying to create a make table query that contains an end value dervied
from numberic fields within the table. I have 9 different columns where I
need to add the values and in the made table, add an additional field which
details the total for each row.

So: Expr1: [Field1]+[Field2]+...+[Field9]. However where the fields are
empty, the function is not operating and just returning Expr1 as blank. Short
of running an update to query to update all blank cells in Field1-9, there
must be an easier way!!!
Help.
 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      20th Sep 2005
Andy wrote:

>I am trying to create a make table query that contains an end value dervied
>from numberic fields within the table. I have 9 different columns where I
>need to add the values and in the made table, add an additional field which
>details the total for each row.
>
>So: Expr1: [Field1]+[Field2]+...+[Field9]. However where the fields are
>empty, the function is not operating and just returning Expr1 as blank.



Sounds like you want to use the Nz function:

Expr1: Nz([Field1],0)+Nz([Field2],0)+...+Nz([Field9],0)

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make an update query to update fields in one table with fields from another table? Chrisso Microsoft Access Queries 1 6th Nov 2007 01:27 PM
Copying a derived type to another type that inherits from derived type Bob Jones Microsoft C# .NET 3 2nd Jul 2007 02:47 PM
Copying a derived type to another type that inherits from derived type Options Bob Jones Microsoft C# .NET 1 29th Jun 2007 10:26 PM
Make Table Query-Running a make table query before you open a for =?Utf-8?B?dGtpcmNob2ZmMTU=?= Microsoft Access Macros 4 13th Apr 2007 11:50 PM
query builder and derived table sutphinwb@nospam.nospam Microsoft ADO .NET 1 9th Apr 2006 08:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:22 PM.