472,807 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,807 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 2113

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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.