I have a userform to enter data (frmProducts) into the table on sheet 2. Everything was working fine and then all of a sudden, I started getting this error when clicking the cmdAdd button. Then when I close the form, MS Excel stops working and restarts.
I only made one change since frmProducts last worked properly. I added a second userform (frmRecipes) to input data into a table on Recipes (sheet3). The second form (frmRecipes) has a dropdown box (cboProduct) based on column A in sheet 2 (Products). The code for the RowSource on cboProduct is:
.
I don't understand why a change in coding on a different form would interfere with the function of the first form so that may be coincidental. I have searched everywhere and can't find a solution. Can anyone help?
The code I am using to save data from the frmProducts to the table "Product" is as follows: (I have named all of the form controls as reg1, reg2, reg3, etc...for a total of 24 controls. Only 6 controls are visible to the user to enter data. All of the other controls are calculated controls based on the information entered.)
Bookmarks