473,382 Members | 1,329 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,382 software developers and data experts.

how to add and subtract in access?



just want to ask if what's the expression on how to automatically get the value of balance where every time i input a value at qty added, it will be automatically added to the last value of balance and at the same time when i input value on qty taken it will be subtracted to the last value of balance and place the output on field balance..thanks..see the attached photo for more info..
Attached Images
File Type: jpg New Picture.jpg (37.5 KB, 2481 views)
May 2 '11 #1
8 5976
TheSmileyCoder
2,322 Expert Mod 2GB
Just because access' table at a first glance looks like excel rows and columns, the 2 are not alike. The way you are proposing to use access shows a lack of understanding of what a relational database is.

If you want some help on how to control stock on hand, you could start by looking at this link:
Allan Browne's inventory
May 2 '11 #2
oh im so sorry...i just use the excel as my example but its just the same with what I will be doing in access and i dont know what expression to use...i just want the last entry of balance to be subtracted to Qty taken or to be added to the qty added...thanks..
May 3 '11 #3
TheSmileyCoder
2,322 Expert Mod 2GB
There is no simple answer. Look at the link I gave you.
May 3 '11 #4
..thanks for the link you've given but i really dont know how to hardcode..i just want to know the expression or the likes on getting 'solution'..thanks..
May 3 '11 #5
Rabbit
12,516 Expert Mod 8TB
Given what I see in the picture, there is no expression that can calculate this in Access. You will need to use code unless you make modifications to the data structure.
May 3 '11 #6
thanks for the reply...you see i dont know how to code and I could really appreciate if your kind enough to help me...thanks...
May 4 '11 #7
...well here is an access example...hope you could help me out..
Attached Files
File Type: zip Database11.zip (11.3 KB, 2 views)
May 4 '11 #8
TheSmileyCoder
2,322 Expert Mod 2GB
The problem is not that we don't understand what you want. You need to understand that we are not able to give you what you want in any reasonable timeframe. Even if me or another did whip something up for you, you lack the knowledge to understand and implement it. At best we could make something similar to the first link I gave you which you have allready admitted that you didn't understand.
May 4 '11 #9

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

Similar topics

3
by: Russ Green | last post by:
I'm trying to perform several manipulations to time values (all will be stored in a access database). I need to find the elapsed time between a start time and a finish time and I also need to be...
8
by: dlx_son | last post by:
Here is the code so far <form name="thisform"> <h3>Enter time to add to or subtract from:</h3> (If not entered, current time will be used)<br> Day: <input name="d1" alt="Day of month"...
3
by: Mo | last post by:
Is it possible to subtract a number of weeks from a specific date field in one of my queries? e.g: CalculatedDateField: MyDatefield - 10 wks Any help much appreciated.
5
by: Salad | last post by:
I wrote a routine for somebody yesterday. When I compare datStart to datEnd in the DoWhile comamnd, when the date/times match they don't. For example, 1:00:00 PM does not match 1:00:00 PM. I...
2
by: nylebella | last post by:
Hello, I am using access 2003. In a query I know that the expression: =DateAdd("h", 3, ) Will give me a time that is 3 hours past what time is in the field. What expression would I use if I need...
5
by: cvisal | last post by:
Hi all Im working on productivity calculations (Time calculations) and need some help in coding. Database Tool:MS-Access 2003. The general operator punch-in time is 5:30 AM and the punch-out...
8
by: Remington | last post by:
I am using windows 2000pro with access 2000. I am trying to make a database for our HR department, that would allow our HR Director to type in an employee's ID number into a form and then select...
12
by: james_027 | last post by:
Hi, for example I have this method def my_method(): # do something # how do I get the name of this method which is my_method here? Thanks,
1
by: Ettah | last post by:
I found this module : See below to calculate elapsedtime ... I am just learning this. If any anyone could assit on how i could modfiy to calculate time elapsed not including a holiday(s) for...
6
by: ashenton | last post by:
Firstly: I've a fairly inexperienced access user! I'm developing a simple stock control database and need to be able to show a total stock for each item. So far I have two queries, both are...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.