>If an application was to enable/disable certain Textboxes in forms depending on Userlevel access in the application, would it be better to include the code in the Textbox REFRESH(), or hold all the code in a central procedure for all forms to access centrally?
>
>Any ideas?
>Thanks
>Kev
I usually have this code in the Refresh of my baseclass. The code checks a similar UserLevelAccess property of my global application object. I also use SDT to extend field properties of all my tables. One property I added was ReadOnly. I then call an SDT method [also in the Refresh of my baseclasses] to retrieve the ReadOnly value of This.ControlSource [if not empty]. I then set the Enabled property of the control based on that return value.
Mark McCasland
Midlothian, TX USA