Allen, I am having the same issue and want to make sure I understand your
answer. I have a continuous form that can display 2 complete records at a
time from a 1200 record database. Each record has about 30 fields. A record
can be either archived or not archived, depending on how a check box is set
on that record. I would like to prevent changes to a record (disable the
fields) on records that have the "archive" box checked, while allowing
changes on records that do not have the box checked. Since the continuous
form can display 2 records at a time, the first record may be archived and
the next displayed record may not be. Can the fields be disabled (or
otherwise prevent changes) to the archived record on the continuous form
while allowing changes on the non-archived record. Obviously, the checkbox
itself would ALWAYS have to remain active so you can change a record from
archived to non-archived.
Would coding something in an "OnEnter" event work? Maybe when you enter
that control, it checks to see if the archive box is checked? If so, it
"locks" that field.
Allen Browne said:
No. Controls cannot be disabled in some rows only of a continuous form.
You may be able to simulate it visually with a text box containing a
Wingdings checkmark character, and use conditional formatting to gray it on
some rows. By placing it in front if the real text box, you can use the
Enter event of this text box to SetFocus to something else
(Screen.PreviousControl perhaps) if it's supposedly 'disabled', or to the
real check box that was behind the text box.