Continuous Forms and Command Button pictures

G

Guest

Hello all,
I have a form in Continuous Form view where I added two Command buttons
after the last control in the details section, one over the other.
the first one has a "Key" picture on it and when it is clicked, it unlock a
control so I can edit its value, then it's visible property is set to false
and the second button bearing the picture of a "lock" is now visible.
the problem is that when i click on the "Key" button, all the "Key" buttons
in the other records on the same form appear to be hidden and the "Lock"
button is displayed till i actually move the focus to another record, then
the OnCurrent event puts everything back to order.
My Question is, is there a way to limit this change of appearance to the
current record only so that only the records with unlocked control display a
"Lock" button and the records with locked control display a "Key" Button
Thanks
Omar
 
O

OldPro

Hello all,
I have a form in Continuous Form view where I added two Command buttons
after the last control in the details section, one over the other.
the first one has a "Key" picture on it and when it is clicked, it unlock a
control so I can edit its value, then it's visible property is set to false
and the second button bearing the picture of a "lock" is now visible.
the problem is that when i click on the "Key" button, all the "Key" buttons
in the other records on the same form appear to be hidden and the "Lock"
button is displayed till i actually move the focus to another record, then
the OnCurrent event puts everything back to order.
My Question is, is there a way to limit this change of appearance to the
current record only so that only the records with unlocked control display a
"Lock" button and the records with locked control display a "Key" Button
Thanks
Omar

No. The continuous form does not have multiple sets of controls, just
one set that is mirrored over and over again.
It is possible to create your own editable grid control with
scrollbars and everything, but it is a lot of work. If you are
interested, do a search on OldPro + scrollbar + grid for overview and
example code.
 

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

Top