473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Changing Items On An Order And Auptmatically Updating Inventory

Tom
Using AccessXP - Access2000

In my application, when an order is entered, inventory is automatically
adjusted, a pull list is created, items are pulled to fill the order, and the
order is packaged for shippment. The order is then held pending payment and
finally shipped when payment is received. Sometimes prior to shipment the
customer calls and wants to change one or more items, wants to change the
quantity of one or more items or wants to add one or more new items to the
order. I have an order/order details form/subform for entering the changes. I
need some help on how to automatically adjust inventory for the changes.

A. Change one or more items ---
(a) The quantity for the existing item must be added back to inventory. I
presume this would be done in the AfterUpdate event of the item. When I change
the item, I now know what the new item is and what the quantity was for the old
item. How do I know what the old item was after I change the item so I can add
the quantity of the old item back to inventory?
(b) The quantity of the new item must be subtracted from inventory. I presume
this would be done in the AfterUpdate event of Quantity. The item has been
changed so I know what the new item is. The quantity has been changed so I know
the quantity of the new item. So I just subtract the new quantity from
inventory - seems straight forward ????

B. change the quantity of one or more items -----
If the new quantity is more than the old quantity, the difference must be
subtracted from inventory and
if the new quantity is less than the old quantity, the difference must be added
back to inventory. I presume this would be done in the AfterUpdate event of
Quantity. How do I know what the old quantity was after I change the quantity so
I can determine if the new quantity is more or less than the old quantity and
then be able to add back to or subtract from inventory?

C. add one or more new items to the order ---
(a) When I add a new item, how do I determine that the item is a new item and
not an existing item that is being changed where A. above would apply?
(b) When the quantity for the new item is entered, how do I determine that the
quantity is for a new item and not an existing item that is being changed where
B. above would apply?

I will appreciate all the detail anyone can give me!

Tom
Nov 12 '05 #1
0 2174

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Maria L | last post by:
I have a client who needs to copy an existing sale. The problem is the Sale is made up of three tables: Sale, SaleEquipment, SaleParts. Each sale can have multiple pieces of equipment with...
3
by: G-Fit | last post by:
Hello group, I have several servers hosting SQL databases. On each of them, I have several databases. All those databases have the same structure (even those on different servers), only the data...
1
by: MickG | last post by:
I am trying to change the value of the variable "hard" according to which radio button is pressed and I am having no joy. Could anyone help me with this, the problematic section is marked with...
5
by: Dee | last post by:
I'm trying to change a field value on a subform called Inventory whenever a field on the main form is updated. I can't get it to work. Could someone correct my line of code? Private Sub...
6
by: segue | last post by:
Hi; I need to change the order of a listbox array from a form app where I select order up or down. What's a good way to do that? Regards; Segue
4
by: Wally | last post by:
This is probably a very simple problem, but I can't figure out the coding for it. I have a list box that displays one of my tables. I'd the user to be able to reorder the items in the list box...
3
by: jmDesktop | last post by:
Hi, probably a simple question that I have for what I think is a simple database. I have a Vendors table and an Items table. There is only one items, but several Vendors may have that same item. ...
18
by: Hunk | last post by:
Would like some advice on the fillowing I have a sorted list of items on which i require to search and retrieve the said item and also modify an item based on its identity. I think an Map stl...
1
by: CriminalTruth | last post by:
Hi i created an access 2003 dmb that tracts inventory by a production number. Now i need a way to decrease the inventory as it gets removed from inventory which a clerk would input. i know the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.