S
scott
I have a subform that has a "Continuous Form" view. By default when the
parent form opens, the focus is on the first record of the sub form, which
is fine.
However, each record on the sub form has an command button to the right of
the values that I have an OnClick event set to open another form that needs
the sub form's active record id value. If the user selects the desired
subform record before clicking the command button, everything works.
The problem is that it's real easy to just click the command button without
selecting the subform record associated with the command button. When that
happens, the command button opens the "pop-up" form using the first subform
record id field value or the last subform record id field that was last
selected.
How can I force access to set the active record to the record "line" that
contains the command button clicked?
Thanks In Advance,
Scott
parent form opens, the focus is on the first record of the sub form, which
is fine.
However, each record on the sub form has an command button to the right of
the values that I have an OnClick event set to open another form that needs
the sub form's active record id value. If the user selects the desired
subform record before clicking the command button, everything works.
The problem is that it's real easy to just click the command button without
selecting the subform record associated with the command button. When that
happens, the command button opens the "pop-up" form using the first subform
record id field value or the last subform record id field that was last
selected.
How can I force access to set the active record to the record "line" that
contains the command button clicked?
Thanks In Advance,
Scott