Here is what happens...
When a form goes into enter mode, the previous record is still displayed. This happens when hiding a combo box on a form using the 'OnEnterRecord' record event and <form>.new_record() form function. (This combo box is used for navigation on a form, so don't want it visible when in enter mode.) This problem does not show up using the navigation bar to enter a new record.
To duplicate the problem, in the attached database, open the 'contacts' form and navigate to any existing record (either with the combo box or the navigation bar), and then click the 'new' button in the top right of the form. You will see the form go into enter mode, but still show the previous record. If you click the 'previous' button in the navigation bar, you will see the record number show the last record, indicating it went to a new record, but didn't show it. At this point if you use the 'next' button on the navigation bar, it works fine.
Now, close the form and comment out the code in the table field rules 'OnEnterRecord' event, and try the same thing. Everything works fine (except, of course, the combo box isn't hidden). Is it a 'form' function conflicting with a 'table' event? Any comments?
I submitted it as a bug report, but if anyone sees something I am doing wrong, please let me know.
Thanks,
Dan
When a form goes into enter mode, the previous record is still displayed. This happens when hiding a combo box on a form using the 'OnEnterRecord' record event and <form>.new_record() form function. (This combo box is used for navigation on a form, so don't want it visible when in enter mode.) This problem does not show up using the navigation bar to enter a new record.
To duplicate the problem, in the attached database, open the 'contacts' form and navigate to any existing record (either with the combo box or the navigation bar), and then click the 'new' button in the top right of the form. You will see the form go into enter mode, but still show the previous record. If you click the 'previous' button in the navigation bar, you will see the record number show the last record, indicating it went to a new record, but didn't show it. At this point if you use the 'next' button on the navigation bar, it works fine.
Now, close the form and comment out the code in the table field rules 'OnEnterRecord' event, and try the same thing. Everything works fine (except, of course, the combo box isn't hidden). Is it a 'form' function conflicting with a 'table' event? Any comments?
I submitted it as a bug report, but if anyone sees something I am doing wrong, please let me know.
Thanks,
Dan
Comment