A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Stock Control Database



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2004, 02:05 PM
Wantula
external usenet poster
 
Posts: n/a
Default Stock Control Database

I’m running a small shop and I need a database to help me keep track of the
sales and most important, the stock. I need to enter all the stock in the
database(stock table), so that it reduces as I make sales.

At the moment, I have two tables, sales and stock and they have the
following fields.
Sales: sale#(autonumber)
Date
Item bought(text)
Quantity(number) [this is quantity purchased by a customer]
Unit price (number)
Total (number)

Stock: Item(text)
Quantity available(number) [ this is quantity available in stock]
Unit Price

The sales are carried out using the following form:
On the form, I have all the following:
Sale number (autonumber)
Date
Item bought : this selected from the combo box
Quantity : this selected from the combo box
Unit Price : this is entered manually
Total : this comes automatically when you enter unit price.

The problem is that I don’t know how I can link the two tables so that the
stock
table(Quantity field) automatically reduces when I make a sale on the form.

Further, I also want a situation where, when an item is selected from the
combo
box on the form, the associated unit price should be displayed
automatically in
the unit price field of the form.


  #2  
Old October 27th, 2004, 02:13 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Use the AfterUpdate event of the Item combo to lookup the price. There is an
example of how to do that in the Northwind sample database, Order Details
form, ProductID combo.

For an introduction to the idea of stock control, see:
Inventory Control - Quantity On Hand
at:
http://members.iinet.net.au/~allenbr...Inventory.html

--
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.

"Wantula" wrote in message
...
I'm running a small shop and I need a database to help me keep track of
the
sales and most important, the stock. I need to enter all the stock in the
database(stock table), so that it reduces as I make sales.

At the moment, I have two tables, sales and stock and they have the
following fields.
Sales: sale#(autonumber)
Date
Item bought(text)
Quantity(number) [this is quantity purchased by a customer]
Unit price (number)
Total (number)

Stock: Item(text)
Quantity available(number) [ this is quantity available in
stock]
Unit Price

The sales are carried out using the following form:
On the form, I have all the following:
Sale number (autonumber)
Date
Item bought : this selected from the combo box
Quantity : this selected from the combo box
Unit Price : this is entered manually
Total : this comes automatically when you enter unit price.

The problem is that I don't know how I can link the two tables so that the
stock
table(Quantity field) automatically reduces when I make a sale on the
form.

Further, I also want a situation where, when an item is selected from the
combo
box on the form, the associated unit price should be displayed
automatically in
the unit price field of the form.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is MDE Charlie General Discussion 4 August 24th, 2004 04:15 PM
Database Window Gone DaveB General Discussion 2 July 29th, 2004 12:24 AM
Inserting a User Control in PowerPoint Aaron Powerpoint 0 June 22nd, 2004 11:52 PM


All times are GMT +1. The time now is 02:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.