1 reply
by stillatit
When you have a form in access, you can write visual basic code to be triggered by any event on the form. The visual basic code can do virtually anything, including opening other forms and moving the focus.
In your case, create a combobox control, right-click it and select properties. Its Row Source Type should be Value List. The choices you want should be placed in Row Source, with a semi-colon between choices:
choice1;choice2;choice3; and so on
Right-click on the control again, and select the event builder. In the upper-right box, select AfterUpdate, and Access will create a skeleton subroutine which will be executed when the control is changed.
You can query the control's value in the code by looking at the value of me.controlname.value where controlname is the name you assign to the control.
Good luck.
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending