Enabled remains true in subsequent records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On a form I am creating, in multiple areas, one combobox result enables a
second combobox. I've done this in code on the AfterUpdate event of the
first box. Additionally, using the OnCurrent Form Event and the NewRecord
property I reset all of the appropriate comboboxes back to jEnabled=False.
However, if I go back to a record and edit it such that a second combobox is
enabled, when I navigate to the next record, the combobox remains enabled as
the new record is made current.
How can I set the combobox to Enabled=False when I move to a subsequent but
not new record?
Tx
Rocky
 
Add your code to the Current event of the Form as well.

This event fires each time you move record.

You may also want it in the Undo event of the form as well, examining the
OldValue of the control.
 
Back
Top