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

understanding North Wind Stock control

In the sample northwind database when an order is sent the sent value
come of the instock value. I can not work out how they have done this .
I can see that it is an eventprocedure but can not understand it or
relate it to my data base.
I want to be able to say that some thing has been shipped in a sales
table and deduct the value from the instock value in my products table.

Nov 23 '05 #1
4 3059
There is a field in the Products table for the number of units in stock, but
(without testing) I suspect that the database does not even try to keep this
value up to date. Did you have a specific event procedure in mind?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"peter" <se*****@dancosgrove.co.nz> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
In the sample northwind database when an order is sent the sent value
come of the instock value. I can not work out how they have done this .
I can see that it is an eventprocedure but can not understand it or
relate it to my data base.
I want to be able to say that some thing has been shipped in a sales
table and deduct the value from the instock value in my products table.

Nov 23 '05 #2
Thank for the reply Allen
I have a table "Stock" that has feilds instock ,on consignment, on
order and sold feilds.
I have another table to record sales.
when a product is sold and entered into the sales table I want the
quanty sold to be deducted from the instock feild of the Stock table.
I have used alpha 5 and they use a thing called posting that you can
use an event 'on change' in the feild and tell it to deduct the amount
from a feild in another table. This is what I want to do.
I think that I have made a mistake it is not done in the northwind
database. it is in a inventory control data base that i got from the
sample data bases with access.

Nov 23 '05 #3
Hi Peter

Access forms have events you can use to respond to an entry. The AfterUpdate
event of the *form* responds to any new entry or change, and AfterDelConfirm
responds to a deletion.

However, there is more to it than that. For a discussion of the basics, see:
Inventory Control - Quantity On Hand
at:
http://allenbrowne.com/AppInventory.html

For a detailed information, I suggest you buy "Building Access Applications"
by John Viescas (Microsoft Press, 2005.) The CD that accompanies the book
includes a database that assigns stock for orders, handling partial orders,
back orders, reversals and so on. It's incredibly good value if you are
getting the application for hte price of the book, and excellent
documentation (the book) thrown in.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"peter" <se*****@dancosgrove.co.nz> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Thank for the reply Allen
I have a table "Stock" that has feilds instock ,on consignment, on
order and sold feilds.
I have another table to record sales.
when a product is sold and entered into the sales table I want the
quanty sold to be deducted from the instock feild of the Stock table.
I have used alpha 5 and they use a thing called posting that you can
use an event 'on change' in the feild and tell it to deduct the amount
from a feild in another table. This is what I want to do.
I think that I have made a mistake it is not done in the northwind
database. it is in a inventory control data base that i got from the
sample data bases with access.

Nov 23 '05 #4
Thanks Allen
I will try to find the book in new Zealand

Nov 28 '05 #5

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

Similar topics

0
by: Marion Slaughter | last post by:
----FA48570F00BB51C Content-Type: text/html; charset="iso-35B2-E" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>...
7
by: simon | last post by:
Hi I know this has been done to death....but obviously at some point in the dim and distant past! I wish to program a retail database for my shop, I have trawled many forums and I only manage...
3
by: Merlin | last post by:
Hi Group Anybody know where I could find a Example of a simple stock control system? Many Thanks Merlin
6
by: Phreake | last post by:
Hi Guys, I am doing a stock list of Printer tonors, with the following tables Printer_tonor_Stock Tonors Printers ----------------------------- ------------- --------------...
1
by: dan | last post by:
Hi I am trying to create a database for a shop with a barcode reader the problem I have is more than likely a simple one but cant get my head around it. the question is how do I create a form...
1
by: adamwhite567 | last post by:
Hi I am quite new to access and i can grasp things quite easily. Basically i am make a stock control data base for a food company. I am making it so theres an order table and a stock table....
1
by: adamwhite567 | last post by:
Hi I am quite new to access and i can grasp things quite easily. Basically i am make a stock control data base for a food company. I am making it so theres an order table and a stock table....
1
by: baker951 | last post by:
I have a problem that some companies in my supplier table deliver on more than one day in a week, is it possible to add more than one value to a single field or do i need seperate fields. Also i...
6
by: Steven W. Orr | last post by:
Given the following code: (I hope it's as simple as possible) :-) #! /usr/bin/python import new class BASE: def __init__( self ): print 'Hello from BASE init' def m1( self ): print 'M1 Base:...
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.