Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2005, 05:55 PM
Authorized User
 
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default No ambient object in access?

I'm working on a custom activex control for use in access. It seems that Access is not allowing the backcolor of the activex to match the backcolor of the form or report its on using backcolor=ambient.backcolor in the usercontrol_ambientchanged event.
Is there a way around this? I need it to have two different backcolors- one for a form, and one for printing on a report.
Thanks


 
Old November 21st, 2005, 09:57 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You should be able to reference this using something like

Me.ActiveX.BackColor = Me.BackColor

I am not sure if Me.BackColor will work. You may just have to code this in using the numbers. Also possibly:

Me.ActiveX.BackColor = vbWhite

for the report.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot access to com+ object gabrieldcr2 ASP.NET 1.0 and 1.1 Professional 0 March 6th, 2008 03:08 PM
access class object Sheraz Khan ASP.NET 2.0 Professional 0 September 10th, 2007 06:19 PM
Access Object Dependencies apologia315 Access 0 July 31st, 2006 12:37 PM
To access "EXCEL" object mcinar Classic ASP Basics 7 November 30th, 2004 12:44 AM
Is There A Timer Object One Could Use In Access vbprogwb Access VBA 1 November 12th, 2003 05:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.