I don't get it. How can a user create a new record if they're choosing something from a listbox that represents records you want them to edit? If that is the case, the record exists, so what is causing the creation of a new record? The edited record not being saved? The form being put into Data Entry mode once the listbox item has been selected?
Without more info, not really possible to know the cause. I for one don't follow posts very well if a mixed bag of terms is used, and that's the case here (sorry).
I mean, you want to "edit", but then you say 'when a user adds a record'
and you have "controlled boxes". What are those?
you filled the listboxes with a value based off the last entered record?? I thought the listbox was populated with a query.
You have a "Date", meaning you named a field or control date ? (bad form if you did).
"If I turn on the fields are required in the table ..." you mean enable form controls?
"My solution thus far has to just been create a delete query based off missing data" I don't get how you can delete a record that has required fields if they weren't filled in. The record is incomplete and doesn't exist yet. You can cancel the record, but again, I don't see how you can have this condition and still have a record to delete.
If you're really using macros, then I don't have much other advice to help you. If it's vba code, then put break points on as many events as you can and interact with the form and step through as many of them as you can. If nothing obvious jumps out then I don't know what else to suggest other than compacting and zipping your db and posting it here for examination. First, I'd look for a reason why the activity of a record being edited seems to morph into creating a new one.
Last edited by Micron; 01-05-2017 at 11:32 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.