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

Subtracting sold items from stock (MS Access)

I'm making a fairly simple database to track inventory and make invoices.

When placing a new order i would like the system to automatically subtract the sold items from the quantity in stock, please bare with me because even though i have some experience but i am still learning.

Thank you for your help.

Attached Images
File Type: jpg 1.jpg (21.0 KB, 1887 views)
File Type: jpg 2.jpg (20.5 KB, 1399 views)
File Type: jpg 3.JPG (11.3 KB, 1235 views)
File Type: jpg 4.jpg (9.2 KB, 1252 views)
Jun 1 '15 #1
1 3965
zmbd
5,501 Expert Mod 4TB
In the onclick event of your submit command button is where I would place the logic to subtract the [sold_qty] from the [on_hand] field.

You may want to place some logic that checks for attempts to over sale the items too... new question... new thread.

I would suggest looking at the Access 2007 Northwinds_Trader template. Open your access 2010/2013, in the ribbon>file> new database
Search for "Desktop Northwind 2007 sample database" and download.

This database may very well do what you want without any modifications (well, updating the data to match your needs ;-) ); however, it's intent is to be a tutorial database. This version uses a lot of embedded macros in the forms; however, there are plenty of VBA examples etc...

I would look at the [orders details] form and its associated code.
Jun 27 '15 #2

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

Similar topics

19
by: Steve | last post by:
Does anyone know where I can get a copy of Access 1.0 or 2.0? Steve
4
by: rwm | last post by:
Hi Before updating to Access 2007 we could open outlook contact entries by using a hyperllink along the lines of <outlook://contacts etc> This does not seem to work in 2007 any more. We have a...
6
by: rlntemp-gng | last post by:
I need to extract information from some Excel files but am stuck with part of it: As an example, I have the following Excel File that has 3 tabbed sheets: FileName: ...
4
by: suvarna | last post by:
hi i am quite new with access n i don know how to add new items in the database from vb form at runtime
0
by: Wendy King | last post by:
Having used the same label template document quarterly for several years I now find I am unable to merge more than 60 items from access database to a word document, the 60th item being duplicated in...
1
by: H Dekker | last post by:
Dear Friends, i have a problem, tried lot of things, but here is the problem: i have a form, called invoice. sold items would be inputted by an usb barcode scanner. Scanner works, i got the...
1
by: bp2001se | last post by:
I am trying to create a query to only produce a result that will give me data less than 3 business days from current day when executed.
15
by: rajeevs | last post by:
Hi I have 2 date fields (date1 and date2)and 3 listbox (Listb1, LIstb2, and ListB3) in an ACCESS form. What I am trying to do is select dates in the date fields, select 2 items from each listbox...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.