Form Background color

G

Guest

Hello,

I was previously using conditional formatting to control the background
color of my form. however, I now have too many criteria to check for and
have to migrate this functionality ti VBA on the current event of my form.

I tried using the Form.DatasheetBackcolor but it doesn't appear to work. I
am using access 2000. My form is in single form mode. How can I change the
background color of the entire form based on the value in a specific field
'Status'?

thank you,

Daniel
 
A

Allen Browne

Set the BackColor property of the Detail section of the form, i.e.:
Me.Sections(acDetail).BackColor = RGB(99, 99, 99)
 
G

Guest

I did some testing and now realize that as it would indicate the
DatasheetBackcolor works when the form is displayed as a Datasheet (there's a
concept).

So How does one achieve the same result when in single form mode?

Daniel
 
G

Guest

Thank you, thank work beautifully!

Allen Browne said:
Set the BackColor property of the Detail section of the form, i.e.:
Me.Sections(acDetail).BackColor = RGB(99, 99, 99)
 

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