I have a form whose record source is a query that sets the order of the data viewed on the form. I use the built in scrolling buttons to move back ad forth through the data. If data is changed in a record it will cause non visible controls to appear, after the changes, and when I move to the next record, I clear the now visible controls buy making them not visible in the OnCurrent event. But when I get to the last record and keep hitting the next record button, it adds neww, blank records to the table. How do I prevent that? Can it be done with events or is code involved. I have just read this:
When you move the focus to a new (blank) record on a form and then create a new record by typing data in a control, the following sequence of events occurs:
Current (form)
Enter (control)
GotFocus (control)
BeforeInsert (form)
AfterInsert (form)
But they seem to only apply if data is entered. I would like to always have one blank record for entering new data, but don't want the blank records written to the table.
Thanks
When you move the focus to a new (blank) record on a form and then create a new record by typing data in a control, the following sequence of events occurs:
Current (form)




But they seem to only apply if data is entered. I would like to always have one blank record for entering new data, but don't want the blank records written to the table.
Thanks