I have a form that is bound to a table. The form contain a command button to print a license from the fields entered on the form.
The print works but the record does not save to the table.
I have checked the form properties and add, change, delete and data entry are "yes".
I have put a docmd.save in the "on click" of the print command button. No errors occur but the record is not save to the table.
I also tried "DoCmd.RunCommand acCmdSaveRecord" in the "on click" but I get a runtime error that says it can't complete because it would create a duplicate value in the index, primary key or relationship.
I can't see any dup unless it is trying to save the record twice in the same function. Thanks, GGuy
The print works but the record does not save to the table.
I have checked the form properties and add, change, delete and data entry are "yes".
I have put a docmd.save in the "on click" of the print command button. No errors occur but the record is not save to the table.
I also tried "DoCmd.RunCommand acCmdSaveRecord" in the "on click" but I get a runtime error that says it can't complete because it would create a duplicate value in the index, primary key or relationship.
I can't see any dup unless it is trying to save the record twice in the same function. Thanks, GGuy