Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-17-2005, 06:51 AM   #1
Member (8 bit)
 
Join Date: Jun 2001
Posts: 226
Send a message via ICQ to racerxfactor Send a message via AIM to racerxfactor
Access Question

I have a database that keeps track of inventory. I have a table and a form with stock on hand. If I change the values from the form it will change the values in my table and vice versa.

I was wondering if there was a way I can instead of changing the values; where I can input an amount that was sold and have that subtract from the table of stock on hand.
racerxfactor is offline   Reply With Quote
Old 01-18-2005, 03:51 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
That would be a very simple operation. You could do it in several ways, such as in an Update query or through VBA. Probably simplest would be an update query, such as
PHP Code:
PARAMETERS Sold Long;
UPDATE table SET AmountOnHand= [AmountOnHand]-[SoldWHERE [InventoryCode]=... 

Last edited by doctorgonzo; 01-18-2005 at 03:56 PM.
doctorgonzo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:16 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2