I am (STILL) working on the attached inventory control db, and have it pretty close to what I need it to do, except for one thing that is giving me trouble.
I have a form called frmAssigned that is based on a query and a table by the same name. the form allows me to choose an employee, select a category and size of an item to ad to a list, blah, blah, blah...
along with the item being added, I can indicated a quantity of that item in a text box on the form called txtHRQuant (this is the number of the selected item being issued to the employee). I also have a textbox (txtOnHand) that shows the "quantity available" of an item that the underlying query pulls from a different table (tblproducts) that shows the number in inventory.
what I am ultimately trying to do is subtract the quantity issued (txtHRQuant) from the available quantity (txtOnHand), then put the resulting number back into the table in the correct recordset for the item selected. I hope I explained that well enough.
I have tried several versions of VBA and when I try to "write" the result back to the table (tblProducts), I get an error that says "run time error 3164, field can not be updated". which I find a little funny, because there is another form (frmAddItems) that I use to write data to the exact same quantity location on the products table and there are no errors. in other words, there are 2 different forms sending updated values to the same field on a table, one of the forms causes an error, the other doesn't, which would make me believe that it is NOT a question of the field being disabled, locked, or uneditable.
I am sure it is something that I am missing or just haven't learned yet.
Anyway, thanks for the time, and I seriously appreciate any help
MikeALWorking.zip