Home  Fees/Services  Access Templates  Tutorials  Access Download  Articles  Search  Contact  Privacy  Links

Microsoft Access Download
Inventory Data Management Method Download

Inventory Calculations in Visual Basic Access Database Downloads

 Access Downloads> Inventory Calculations Single-User

 
 

How To Open Email Using SendObject Access Example Download

Send Email Access Sample Download (Advanced)

Programming MS Access Security Alternative

Inventory Calculations Down Load ( Single User)

How To Perform Inventory Calculations (Multi-User)

Make Dependent Combo Box Code Access Database Download

Union Query Example (Simple)

Union Query (Advanced)

How To Fill Fields From Combo Box

Use Global Variables as Parameters

Download Continuous Form Dependent Combo Box

How To Program Continuous-Continuous Master/Detail Forms

Download Example for Bar Chart/ Bar Graph on Access Forms

Programming Crosstab Query Example

TransferText & OutputTo Examples

DoCmd.OpenForm & OpenArgs VBA Example

Running Sum Query Method

Choose Command Dynamic SQL Order By

Access Conditional Format

Access Report Banding

Popup Form Control Method


Increment/Decrement Inventory Values

Inventory Database Calculations Example

Custom Inventory software is the most widely requested type database for our programmers.

In this Access database example download we demonstrate the simplest method for calculating inventory totals when creating purchase order or similar Access forms.  This Access database download shows how you can use the Docmd.Runsql statement in the after update (afterupdate) event to  increment and decrement inventory totals. The methods demonstrated here are only suitable for single-user database systems since the code does not take into account the possibility of locked table records.

The following code is run from the Access database example:

Option Compare Database
Public hold_qty As Long

Private Sub Qty_Out_AfterUpdate()
DoCmd.RunSQL "Update M_Inventory set inv_qty=inv_qty+" & Nz(hold_qty, 0) & " where barcode=" & Me.BarCode
DoCmd.RunSQL "Update M_Inventory set inv_qty=inv_qty-" & Nz(Me.Qty_Out, 0) & " where barcode=" & Me.BarCode
Me.QOH.Requery
End Sub

Private Sub Qty_Out_Enter()
hold_qty = Me.Qty_Out
End Sub

The inventory calculations method shown in this example should only be considered for a one-user inventory system.  Consider using transaction processing for these types of calculations in a multi-user database so that record locking and update failures can be tracked to increase database integrity and inventory calculation accuracy.  Download the Access 2000 Inventory Calculations Example.

Inventory Calculations Access Download



If you have arrived at this Microsoft Access download page directly then don't miss our Access Database Tutorial

 

Microsoft Access support



Contact Information 

Access Database Downloads
MS Access 2003 Download Access 2000 Downloads 2002

Access Database Examples • Microsoft Access Templates • MS Access Tutorials