display button on selected record in continuous form

eugz

Registered User.
Local time
Today, 06:33
Joined
Aug 31, 2004
Messages
128
Hi All.

I have continuous form in Access 2010. I highlight selected record. Now I would like when user will select record, that record will display button to give ability user delete it. For not selected records button not visible and disable. How to display button only in selected record in continuous form? I will appreciate for sample.

Thanks.
 
Use the OnGotFocusEvent or the OnClickEvent and then
Me.SomeControl.Visible= True
Of Course you will need a OnLostFocusEvent to set it to Visible or Invisible as desired.

HTH
 
I haven't 2010 so, maybe, this is a new feature (to display something for a selected record).
In 2007 every record will have a "cmdDelete" button. This button, when pressed, will remove the record where it is (always the current record because Access will move the focus (=current record) where you click (the button)
 

Users who are viewing this thread

Back
Top Bottom