I have a subform in which the user enters information about an order that a customer is making. My main form is working correctly; however, I am unable to get my subform to work correctly.
Here is what I need the subform to be able to do:
The user enters the productID, then the unit measures available for purchase for that specific product are requeryed and the unit measure is selected from a combobox. The unit Price and Cost for that product in that unit measure are then filled in. Also, the product description and bin location are filled in after the productID is entered. The user can do this for as many products as they want. The form will also calculate total prices
The problems I am having:
1) Currently I am getting the "The Microsoft Access database engine cannot find a record in the table <name> with key matching field(s) <name>. (Error 3101)" message when I try to go to the second record in the subform. I know why this error is caused by am still unable to fix it.
2) Before I got this error message I had it all working except - when i went to the second record of the subform to enter a second productID and unitmeasure, all the unitmeasure comboboxes would be set to the unit measure i selected for that productID. The prices were then all reset to that unit measure and productID.
I have attached the database and if anyone could please help me fix these problems that I am having and get the subform working as I described I would really appreciate it. (also, I do not know why my subtotal, grandtotal, tax, and shipping and handling calculations are not working. They worked when I had the subform opened independently but not when it is a subform.)
Here is what I need the subform to be able to do:
The user enters the productID, then the unit measures available for purchase for that specific product are requeryed and the unit measure is selected from a combobox. The unit Price and Cost for that product in that unit measure are then filled in. Also, the product description and bin location are filled in after the productID is entered. The user can do this for as many products as they want. The form will also calculate total prices
The problems I am having:
1) Currently I am getting the "The Microsoft Access database engine cannot find a record in the table <name> with key matching field(s) <name>. (Error 3101)" message when I try to go to the second record in the subform. I know why this error is caused by am still unable to fix it.
2) Before I got this error message I had it all working except - when i went to the second record of the subform to enter a second productID and unitmeasure, all the unitmeasure comboboxes would be set to the unit measure i selected for that productID. The prices were then all reset to that unit measure and productID.
I have attached the database and if anyone could please help me fix these problems that I am having and get the subform working as I described I would really appreciate it. (also, I do not know why my subtotal, grandtotal, tax, and shipping and handling calculations are not working. They worked when I had the subform opened independently but not when it is a subform.)