473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Novice Question. NZ function

I am having trouble with adding data from two tables.
The tables in question are a stock in and a stock out table. For
various reasons it is not suitable to join them into one transaction
table. Obviously, what I want to do is subtract the "out" from the
"in" and get a value for how many of each item is in our cupboard. The
problem arises when nothing of particular product has been removed,
meaning there is no entry in the "out" table.
I have tried using the nz function, but that doesnt seem to help when
there is no entry at all.
Any help would be gratefully recieved as my googling hasnt brought me
any aid.
Nov 12 '05 #1
1 1283
Join the tables in a query with an outer join (assuming the In items table
is the first listed it would be a left outer join). you will then get a
full record for each item in the In table and where there are no
corresponding records in the Out table you'll get Null values. You can then
use the Nz functiont convert the appropriate Null values to zeros for your
calculation.

--
Terry Kreft
MVP Microsoft Access
"James Bremner" <ja***********@postmaster.co.uk> wrote in message
news:f4**************************@posting.google.c om...
I am having trouble with adding data from two tables.
The tables in question are a stock in and a stock out table. For
various reasons it is not suitable to join them into one transaction
table. Obviously, what I want to do is subtract the "out" from the
"in" and get a value for how many of each item is in our cupboard. The
problem arises when nothing of particular product has been removed,
meaning there is no entry in the "out" table.
I have tried using the nz function, but that doesnt seem to help when
there is no entry at all.
Any help would be gratefully recieved as my googling hasnt brought me
any aid.

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code...
4
by: sean | last post by:
HI All, I have a function that validates a form, when the function returns true or false it still does not submit the form. I am using a <div> tag with text to submit the form. I have tried the...
7
by: CoolPint | last post by:
While I was testing my understanding of Functioin Template features by playing with simple function templates, I got into a problem which I cannot understand. I would be very grateful if someone...
3
by: Donna Sabol | last post by:
I know a little about VBA, but everything I know I've learned on my own through trial and error (and cut & paste). Now I'm actually taking a class, but it's online twice a week. I'm running...
3
by: herrcho | last post by:
Here is the code.. #define NAME "MEGATHINK, INC" #define ADDRESS "10 Megabuck Plaza" #define PLACE "Megapolis, CA 94904" int main() { starbar(); printf("%s\n",NAME);
4
by: trond | last post by:
Hello all, Before I start I'd like to point out that I am a complete novice when it comes to asp.net - My background is in network and operating systems, and although I have been doing a bit of...
29
by: Knut Olsen-Solberg | last post by:
I try to change the text in a <p> using getElementById(). I wonder what properties exists, and which one to use here. (The following does not work.) Regards Knut ______________________ ...
1
by: TwistedSpanner | last post by:
Hello all, For the record I am a complete java novice. I have to write a program to generate/output to screen 10 simple maths question and output a final score . The question is as follows ...
9
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.