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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top