GREABR
IS-IT--Management
- Aug 19, 2002
- 21
I have a form that gets is data from a query. The form has a field (one of a composite Primary Key) that is filled from a combo box. After making a selection from the combo box, the form is dirty. Here is where it gets wierd - When I enter another field/TextBox on the form, the record updates, but the form does not.
After the record updates, all of the Text boxes on the form change to display "#deleted", because the form loses its pointer to the updated record.
This also happens when I save or close the form while it is dirty. First the record updates and the pointer is lost (#deleted in textboxes), then the form goes to beforeupdate and prompts me to save Y or N. If I say no, the event is canceled, but the record is saved.
Now it gets wierder - this only happens when I open the form to an added record (allowadditions is true and the data is EOF because of the Filter). this does not happen when I edit the records using the same form, or if I add them with DoCmd using the same form.
Much of the detail for this error are covered in a previous post "Add Record on Open Form Behavior". In that post we cover alot of ground on Normalization and relational design but do not descover the cause of this behavior.
"Don't be afraid to do things wrong, before you do them right"
Bradley Greaves
After the record updates, all of the Text boxes on the form change to display "#deleted", because the form loses its pointer to the updated record.
This also happens when I save or close the form while it is dirty. First the record updates and the pointer is lost (#deleted in textboxes), then the form goes to beforeupdate and prompts me to save Y or N. If I say no, the event is canceled, but the record is saved.
Now it gets wierder - this only happens when I open the form to an added record (allowadditions is true and the data is EOF because of the Filter). this does not happen when I edit the records using the same form, or if I add them with DoCmd using the same form.
Much of the detail for this error are covered in a previous post "Add Record on Open Form Behavior". In that post we cover alot of ground on Normalization and relational design but do not descover the cause of this behavior.
"Don't be afraid to do things wrong, before you do them right"
Bradley Greaves