Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   changing on hand counts in inventory

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old May 15, 2006, 01:09 PM
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
changing on hand counts in inventory

I have built my database pretty much how I want it. Now what I want to be able to do is when my wife inputs the info in the form of what people have bought, I was hoping to have it subtract it out of her inventory automatically or right away. Can this be done without have to run a query each time? From what I have been reading I am not seeing where this is possible but I thought I'd ask.

She would already have the inventory in stock for the most part, she just needs to subtract it out when someone buys it.

Reply With Quote
 
     

Answers
 
 
Old May 16, 2006, 04:07 AM   #2  
LTheobald
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
Is this an Access database? I'm not too hot with database but I can tell you what to search for on Google. What you want is called a "trigger". So basically try searching for "Access trigger" in Google.
  Reply With Quote
 
     
 
 
Old May 16, 2006, 04:43 AM   #3  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,904
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Sounds like you aren't doing inventory correctly. Stock on Hand is a calculation, not a stored amount. An inventory tracking app generally centers around a transactions table that records ALL movement of stock in and out. Stock on hand is then calculated by adding the INs and subtracting the OUTs. The form you describe that records purchases should be inputting to this transactions table.

For more on this check out this article:

Allen Browne - Inventory Control: Quantity on Hand
  Reply With Quote
 
     
 
 
Old May 16, 2006, 01:29 PM   #4  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Scott, after posting this I found the other Access forums that said the same thing (not to me). I will see if i can figure this out and ask more questions as I go along. Thanks Scott for your input.
  Reply With Quote
 
     
 
 
Old May 17, 2006, 01:43 PM   #5  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Scott, I was checking out the templates that Microsoft provides online and I noticed the inventory management template. I am not sure how familiar you are with what it looks like (I attached it just in case). There is a form called Products which shows the on hand count there. I played with it a little and everytime I put in a transaction it did update it. Is this a proper way of doing it? Is this part of the transaction table they you said I need to do? The reason i ask is cause it seems that Microsoft doesn't go by naming conventions so if they aren't doing that write how do I know if the rest is right. This, forums, and a library book on Access is what I have been learning from.

Also, they do have an inventory transaction table. Is this what you are referring to to calculate the on hand counts?

Bare with me as I am trying to follow what they are doing here and i am just not getting it. I think my lack of accounting skills is hindering me from understanding this. Sometimes I think I am getting in over my head but seeing this isn't a huge company I am working with just my wife's small inventory of cosmetics, hopefully I should understand it soon.

Thanks.
  Reply With Quote
 
     
 
 
Old May 17, 2006, 03:45 PM   #6  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,904
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
If its the Inventory template I think it is (no attachment), then its correct. I think you find that the Counts on the Product form are calculations (check the Control Source).
  Reply With Quote
 
     
 
 
Old May 17, 2006, 04:04 PM   #7  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Yes they are calculations. Sorry I thought I attached it. I think I am starting to see the picture now. One more question, from the inventory table, if I wanted to get a list of all the products and see what the current on hand counts are, I would have to run a query? If so, I can run this as many times as I want?

Thanks alot for your help Scott, I really appreciate it.
  Reply With Quote
 
     
 
 
Old May 17, 2006, 05:58 PM   #8  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,904
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
You can do it as a query or report. Just group by product.
  Reply With Quote
 
     
 
 
Old May 23, 2006, 04:28 AM   #9  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Scott, I have another question about the transaction table. How would I make the relationship for the tables. I have the transaction , products, order, orderdetails tables. As far as forms, I already had my Customer order form then I made a purchasing form for when my wife orders her products. I am having a hard time linking these so when she places an order it places the order in the transaction table. I am also having a hard time when she puts a customer order. I have tried to connect the relationships together but I can't seem to get it right.
I have my tables setup how you told me to do it in a previous post:

http://www.askmehelpdesk.com/databas...ess-20225.html

If you point me in the right direction, I a would be greatful. If I need to be more clear let me know.

Thanks Scott.
  Reply With Quote
 
     
 
 
Old May 23, 2006, 04:54 AM   #10  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,904
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Your OrderDetails table should be the transaction table. That table will have ProductID as a foreign key. It will include a quantity field. It should also include a transaction type field to identify whether the entry is an order, a sale, shrinkage (demos, damage) or whatever. Transactions fall into 2 categories; Ins and Outs.

When entering Customer Orders the transaction type can be defaulted to an Out. When entering Purchase orders you link to the same table but the type is an In.
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
numbness in hand jduke44 Medical Specialties 3 Dec 14, 2007 09:51 AM
other kids getting out of hand kfallone Other Family & People 5 Dec 7, 2007 06:25 PM
taken in hand aqua@home Marriage 4 Dec 7, 2007 06:06 PM
Need a hand ljones Writing 3 Jun 1, 2007 07:11 PM
Hand me down V-BOX KD7LXX Desktops 1 Feb 27, 2006 12:15 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 12:43 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.