Full Version: Set pictures to controls in runtime
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
JeremyJones
i want to display the exclaimation point icon on a control if a require field is not completed. How can I add that icon in program?

Thanks
LittleViews
I assume you want to change the graphic on a button.

Create two buttons, with each button having an appropriate image. Place the buttons over one another. Use an IF Statement to determine which button is visible.

Create a subroutine to handle your button's work.

Call that subroutine from both buttons. The one that is visible will be the one that handles the routine.
JeremyJones
thank you for the reply, but I actually need it on tabs
LittleViews
Can't be done on the tabs.

Depending on how clever you are, you can create your own tab operation.

Think "row of picture-covered buttons" that look like tabs

Under the row is an area for a sub form. Click a "tab" and the subform fills in with whatever.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.