Inventory Update Sluggish

SBullard

Registered User.
Local time
Today, 05:54
Joined
Dec 17, 2011
Messages
13
I am using Access 2010 to update a database originally created in Access 2000. The database keeps track of orders, purchase orders, inventory, etc.

The original database had fields in the products table for the quantity on hand, on order, etc. Every time a product was sold or purchased or any other change, the fields were updated through the code. I have been reading that that is not the most efficient way to handle the inventory data.

So, I have created functions to update the OnHand, OnOrder and OnHold amounts. They work and calculate correctly. I have used these functions to calculate the inventory amounts for our product list. This list is used when an employee needs to add a product to an order or a purchase order. The problem is that we have almost 10,000 items on our product list (don't ask). When you open the form to display the products and inventory information, it is very slow. Also, the form allows the user to narrow his search by entering product categories, etc. Every time that is done, the form recalculates again. It will be very difficult to use in a real-world environment because of the speed.

Is there any way to speed things up? The item ID field is indexed. I have thought of transferring data to a temporary table when the product form is opened and only have to calculate once, or could a data macro in the product table help? Could I use the function there to calculate the amount and requery the field when a change is made?

Any ideas?
 
It might be best to post a jpg of your tables and relationships.

When you say "calculate the inventory amounts", what exactly does that mean?

It might also be helpful if you told us more about the database. How many users? Is it split FE/BE? What does "slow" mean in real terms?


There are some general guides for speeding up Access - may not apply to your situation:

http://www.blueclaw-db.com/access_consultant_rapid.htm
http://www.officefrustration.com/showthread.php?t=600181&page=4
http://www.tech-archive.net/Archive/Access/microsoft.public.access.tablesdbdesign/2004-09/0093.html
http://msdn.microsoft.com/en-us/library/dd942824(v=office.12).aspx
 
OK. You are officially a genius.

I tried to take create a database with just the problem form and related tables, etc. I couldn't upload it because of a security issue? I don't know what that is about.

However, in looking at the relationships, I realized that a new table I created for the inventory count was not in the relationship screen. When I added it, it became much faster! If I look more closely at all the relationships that might solve the problem.

Thank you very much!
 

Users who are viewing this thread

Back
Top Bottom