• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Modifying an open Access form from a code module

From an Access VBA code module, how can I modify a control's appearance on a form, after I opened it, and then how can I close that form?
0
musgah
Asked:
musgah
1 Solution
 
Rey Obrero (Capricorn1)Commented:
try this codes

to change backcolor
Forms!nameofForm!NameofControl.backcolor=vbred

to close the form

docmd.close acform, "nameofForm"
0
 
musgahAuthor Commented:
Thanks!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now