473,385 Members | 2,013 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,385 software developers and data experts.

Access Formula Question

I am attempting to build an inventory program for personal use and training. I would like to add a formula to a query that is pulling my table data with which I will populate a form.
I need to automatically calculate number of items needed by subtracting number of items desired from number of items onhand. The user will enter the desired and onhand amounts.
I have created a table with these three fields included, and have created a query that includes all three fields, and seems like I should be able to enter the expression "Invent_Desired - Invent_Onhand" and store the value in the Invent_Needed but it doesn't work! Im very frustrated!
I hope you can help... look forward to your reply.
VR/
Tony
Nov 21 '07 #1
1 1365
ADezii
8,834 Expert 8TB
I am attempting to build an inventory program for personal use and training. I would like to add a formula to a query that is pulling my table data with which I will populate a form.
I need to automatically calculate number of items needed by subtracting number of items desired from number of items onhand. The user will enter the desired and onhand amounts.
I have created a table with these three fields included, and have created a query that includes all three fields, and seems like I should be able to enter the expression "Invent_Desired - Invent_Onhand" and store the value in the Invent_Needed but it doesn't work! Im very frustrated!
I hope you can help... look forward to your reply.
VR/
Tony
There are several Methods which you can use to accomplish this, one of which is an Update Query which will calculate the Invent_Needed values and store them in this Field. Assuming your Table Name is tblInventory:
Expand|Select|Wrap|Line Numbers
  1. UPDATE tblInventory SET tblInventory.Invent_Needed = [Invent_Desired]-[Invent_Onhand];
Nov 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: jillandgordon | last post by:
I hope this group does not mind the most basic questions. I am trying to teach myself Access in two different versions. My company now uses Access 97 but, in the next few months, will be...
11
by: Brian VanPelt | last post by:
I am not a very experienced VB user, but I was trying to make a form that a user could input a formula for summation. For example, I would like the user to input the beginning and end values of...
2
by: Ironman | last post by:
Dear Access Developers: I have an interesting problem that I hope someone could suggest how to solve: I have the following Report: Col-1 Col-2 -------- ------- 483.3 100
5
by: nedian | last post by:
Hello I am student and trying to learn access.I am having problem in making a program can any one help me? i wanted to make 2 tables in access and then create a link.First i am telling u what...
4
by: David_from_Chicago | last post by:
What I am trying to do is to simulate the LINEST functionality from Excel in Access through VBA. When I use LinEst in Excel I can get back five statistical results. Here are is the formula array...
6
by: Stormy | last post by:
I want to create a query formula in Access. I have 2 columns that have dates eg: 02/03/06 - from those 2 columns I want access to add the 2 dates and give me a number. I am stuck on what criteria...
0
by: toton.basak | last post by:
In C++ any i can simulate some restricted access modifiers based on association & inheritance? eg, class BombMaker{ private: void makeAtomBomb(){ std::cout<<"making atom bomb\n"; } int...
2
by: welshkaiboy | last post by:
Due to the size of the data I have to manipulate I need to apply a excel formula in access which determines date of manufacture from a serial number 716001 so I use...
30
by: Barry L. Bond | last post by:
Greetings! I just got a new Peet Brothers Ultimeter 2100 Weather Station. This new one has a way to display the heat index, if you press the "dew point" key twice. Being aware of all the...
24
by: joeldault | last post by:
Question For Microsoft Access Data Base -------------------------------------------------------------------------------- I am Trying to create a single formula that would do the following: If...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.