PC Review


Reply
 
 
Clint Liezert
Guest
Posts: n/a
 
      9th Sep 2003
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.
 
Reply With Quote
 
 
 
 
Chris
Guest
Posts: n/a
 
      9th Sep 2003
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


>-----Original Message-----
>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.
>.


 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      9th Sep 2003
"Clint Liezert" <(E-Mail Removed)> wrote in
news:581601c376ed$b4b7b190$(E-Mail Removed):

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternating Color Detail Back Color =?Utf-8?B?SmF5?= Microsoft Access Form Coding 5 30th Oct 2006 04:10 PM
Match TextBox Back Color to Cell Fill Color =?Utf-8?B?QU1ZIFou?= Microsoft Excel Programming 4 12th Oct 2006 06:07 PM
Passing Back Color to Interior Color ExcelMonkey Microsoft Excel Programming 1 22nd Mar 2005 04:27 PM
Bullet Font Color Changes When I Change Text Color--Can I Change it Back? J. Danniel Microsoft Powerpoint 2 17th Mar 2005 08:06 PM
Re: Text Color and Back Color Allen Browne Microsoft Access Form Coding 5 3rd Jul 2003 10:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:05 AM.