Results 1 to 5 of 5
  1. #1
    ph_jawad is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4

    Inventory software: help needed

    Click image for larger version. 
<br /><script async src=
    Name: inventory.png  Views: 16  Size: 31.3 KB  ID: 11197" class="thumbnail" style="float:CONFIG" />


    Dear members,

    I have an issue. Suppose i add 3000 units of a product in my stock. Out of which i consume suppose 3500. The problem is that the database shows -500 balance. What should i do so that the database should not allow more than 3000 units to be consumed.

    Thanking in advance,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I'd use the before update event:

    http://www.baldyweb.com/BeforeUpdate.htm

    in your case, you'd check the amount about to be entered against the balance via DSum(), recordset, etc.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    I agree totally with Paul. I would also recommend that, before you get too deeply involved in operational aspects of Access, you identify the transactions involved in your "business" and document the logic involved. Then create the appropriate code/forms/validation/messages in Access and test things thoroughly.

    I would also suggest you adopt a naming convention that uses alphanumeric and "_" only, with no embedded spaces or special characters. You will save yourself a lot of frustration.

  4. #4
    ph_jawad is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4

    where i should put the code

    Many thanks for your comments. Im not good in VBA. Where i would put the code?

  5. #5
    ph_jawad is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    4

    data

    Quote Originally Posted by pbaldy View Post
    I'd use the before update event:

    http://www.baldyweb.com/BeforeUpdate.htm

    in your case, you'd check the amount about to be entered against the balance via DSum(), recordset, etc.
    Dear member,

    I have enclosed my tables and query from my inventory software. plz guide me where i would put the code and what it would be. Thanking you in advance
    Click image for larger version. 

Name:	incoming products.png 
Views:	9 
Size:	19.3 KB 
ID:	11200
    Click image for larger version. 

Name:	outgoing stock.png 
Views:	7 
Size:	17.2 KB 
ID:	11201
    Click image for larger version. 

Name:	query-invnetory.png 
Views:	6 
Size:	20.8 KB 
ID:	11202

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Products Inventory Dilema,Add To Inventory
    By burrina in forum Forms
    Replies: 3
    Last Post: 12-02-2012, 12:10 PM
  2. Software Inventory Database Design
    By andy1970 in forum Database Design
    Replies: 1
    Last Post: 06-22-2012, 07:00 PM
  3. Software Table
    By jenncivello in forum Access
    Replies: 3
    Last Post: 11-18-2011, 03:07 PM
  4. Training and software
    By fsmikwen in forum Access
    Replies: 1
    Last Post: 12-21-2009, 06:58 PM
  5. ETL software and training
    By Hcasty in forum Access
    Replies: 1
    Last Post: 08-27-2009, 07:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums