access vba - Setting textbox properties on continuous form -


i working on access 2010 form user can select record in form header via combobox , build elements related selected record in detail section of form. default view of form set continuous forms.

one of controls in detail section of form combobox control. want set enabled property of textbox on same row of form false based upon selection combobox. code running is:

if me.cboelementtype = "contract shrink"   me.txtelementid = ""   me.txtelementid.enabled = false endif 

this works, sets instances of textbox (txtelementid) enabled = false. want have happen txtelementid have different enabled setting each row in detail section based upon selection of combobox cboelementtype. so, if cboelementtype = "contract shrink" on row 1 of scrolling detail section, txtelementid.enabled set false row. if cboelementtype = "cost group" on row 2 of scrolling detail section, i'd txtelementid.enabled false on row 1 of detail section , txtelementid.enabled true on row 2.

can confirm or deny can done and, if can done, how suggest accomplished? no matter way goes, help.

you cannot through vba did, need use conditional formatting, there have option set enabled property.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -