Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

more access problems


[Replies] [Reply] [View by Thread] [Help]
[Back To CyberArmy Public Forum]

Posted by Tr goremaster On 2002-12-13 09:27:16

Tr
Tr goremaster

www.geocities.com/gore_productions/comp1.jpg


Having trouble in access, i have the tables:

TblSales
------------
SaleID (PK)
EmployeeID
DateOfSale
TimeOfSale
StockID
Quantity
UnitPrice
TotalSalePrice

and

TblStock
--------
StockID
Description
UnitPrice
TypeOfStock
Damaged?
Shelf-Life
Edited?
CurrentQuantity
SuggestedStockLevel
QuantityToOrder

I have two forms with exactly the same fields FrmSales and FrmStock

In the sales form I have a seperate part that looks like this

---------------------------------
| StockID | \/ | (combo box)
---------------------------------
-----------------------
Quantity | | (text box)
-----------------------
-----------------------
Unit Price | | (text box)
-----------------------
-----------------------
Total Sale Price | | (text box)
-----------------------

the above is from the sales form with the combo getting information from TbLStock, while text boxes all linked to TblSales, what I want to do is this... when a StockID is chosen, i need access to look into TblStock and retreive the Unit Price from there and put it into the Unit Price box in FrmSales

It would help if there was either code to do that, or a better way that I can't think of.

-------------------------------------------------
The Gore Master - Mere Trooper

I'm as good a Trooper as Rincewind is a Wizard.
-------------------------------------------------


Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.02974 seconds


About Us | Privacy Policy | Mission Statement | Help