Your code should work, you must have some other code which stops your code from working.
>how to change to commandbutton color by coding?
>
>I use:
>(change the commandbutton color to yellow)
>
>
>
> thisform.a02.BackColor=65535
> thisform.a02.Refresh
>
>
>
>but it doesn't work.
>
>thanks for the help
>
>regards,
>
>Jerry