Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock control on form after 'FindRecord' action in macro

Status
Not open for further replies.

almoes

Programmer
Jan 8, 2003
291
US
Hi!

I have a macro that when double click on a list it opens a form displaying the fields for that record. However I want that some of the controls appear locked so that the user can't change the value. To retrieve the record I use the macro action 'FindRecord' and I was trying to use the action 'SetValue' to lock these controls but if I do it before 'FindRecord' I get an error that it can't find the record and if I set the value after, it doesn't display anything on these fields. Any ideas of how I could perform these? I am trying to avoid to create an extra form for only displaying the fields in this case. Thanxs!

cheers,
alej
 
Try setting the Locked or Enabled property of the controls. For example, ctlName.Locked = true
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top