Back Color

C

Clint Liezert

I am using Windows XP and MSAccess 2002

I would like to be able to change the "back color" of a
subform using Visual Basic. The help information
indicates that it can be done but I can't figure out how
to reference the form "details" section.
 
C

Chris

Where are you trying to change the BackColor?

From the subform itself:
Me.BackColor = vbRed

From the Parent form:

Me.Controls("ControlName of
Subform").Form.Details.BackColor

From any other form:

Forms("Parent Form Name").Controls("ControlName of
Subform").Form.Details.BackColor


Chris
 
T

Tim Ferguson

I would like to be able to change the "back color" of a
subform using Visual Basic.

Like any other property on a subform

Me!ctlMySubForm.Form.BackColor = RGB(1,2,3)


HTH


Tim F
 

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