I have the following update query tied to a form
INSERT INTO [Object] ( as400narr, Lib, Name, Type )
SELECT OBJP1.ODOBTX, OBJP1.ODLBNM, OBJP1.ODOBNM, OBJP1.ODOBTP
FROM OBJP1
WHERE (((OBJP1.ODLBNM)=[Forms]![Object]![cboODLBNM]) AND ((OBJP1.ODOBNM)=[Forms]![Object]![cboODOBNM]));
after the last cbo box is run which is called cboType i use a macro called narrMacro that with commands open query and save as soon as I select the data for the last combo box and click record selector to go to next it says the data would produce duplicate records. When I check the table OBJECT the record is in there.
what am I doing wrong that produces these records. I do not see in the macro a place just to run the query
thank you
INSERT INTO [Object] ( as400narr, Lib, Name, Type )
SELECT OBJP1.ODOBTX, OBJP1.ODLBNM, OBJP1.ODOBNM, OBJP1.ODOBTP
FROM OBJP1
WHERE (((OBJP1.ODLBNM)=[Forms]![Object]![cboODLBNM]) AND ((OBJP1.ODOBNM)=[Forms]![Object]![cboODOBNM]));
after the last cbo box is run which is called cboType i use a macro called narrMacro that with commands open query and save as soon as I select the data for the last combo box and click record selector to go to next it says the data would produce duplicate records. When I check the table OBJECT the record is in there.
what am I doing wrong that produces these records. I do not see in the macro a place just to run the query
thank you