Hello,
I have a form that contains a combo box along with other controls. The combo box On_Change event triggers changes to other controls' properties (visible-true/false, location, enabled,etc.) I have a default value for the combo box as well as code to call the On_Change event when navigating to other records.
If I'm in a new record and started typing a value in a textbox, Access assigns an ID (record ID/primary key which is an autonumber) even though it's not technically saved. If I hit the Esc button, that value is erased. This is fine, but if at that point I hit Esc again it resets the form to a brand new record (no record ID). The combo box value goes back to the default value; however, the combo box's On_Change event doesn't get triggered for some reason. Textboxes that should be hidden are still visible. I can't figure out why it's not getting triggered when using Esc to get back to a new record.
Any suggestions would be greatly appreciated!
I have a form that contains a combo box along with other controls. The combo box On_Change event triggers changes to other controls' properties (visible-true/false, location, enabled,etc.) I have a default value for the combo box as well as code to call the On_Change event when navigating to other records.
If I'm in a new record and started typing a value in a textbox, Access assigns an ID (record ID/primary key which is an autonumber) even though it's not technically saved. If I hit the Esc button, that value is erased. This is fine, but if at that point I hit Esc again it resets the form to a brand new record (no record ID). The combo box value goes back to the default value; however, the combo box's On_Change event doesn't get triggered for some reason. Textboxes that should be hidden are still visible. I can't figure out why it's not getting triggered when using Esc to get back to a new record.
Any suggestions would be greatly appreciated!