Code Control Formats in which Event?

M

MVP Wannabe

I have a continuous form that I want to set field formatting on multiple
controls using VBA. I do not want to use the Conditional formatting.

Assuming I write my formatting code into a procedure, which event is the
appropriate place to invoke the code from?

Thanks
 
M

Marshall Barton

MVP said:
I have a continuous form that I want to set field formatting on multiple
controls using VBA. I do not want to use the Conditional formatting.

Assuming I write my formatting code into a procedure, which event is the
appropriate place to invoke the code from?


You can not use code in an event procedure to set different
formats in different rows in a continuous or datasheet form.

There is a very messy workaround using multiple text boxes
on top of each other, but it rapidly goes out of control if
there are more than a few different formats.

Maybe I could make a more specific suggestion if you
explained what effect you are trying to achieve and why you
don't want to use Conditional Formatting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top