[AccessD] Friday Puzzler - Access 2007 - "Report View""OnFormat"and "On Paint" Events

Brad Marks BradM at blackforestltd.com
Tue Nov 2 08:12:16 CDT 2010


Jim and Stuart,

Thanks for your insights into this. 
 
Your explanations explain what I am seeing.

I appreciate the assistance.

Brad


-----Original Message-----
From: accessd-bounces at databaseadvisors.com on behalf of Jim Dettman
Sent: Mon 11/1/2010 6:59 AM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Friday Puzzler - Access 2007 - "Report View""OnFormat"and "On Paint" Events
 
Stuart,

  Yes, I would think it would be like OnPage a bit; everything is already
rendered and you can add to it but not modify anything already there in
terms of layout.

Jim. 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan
Sent: Saturday, October 30, 2010 8:44 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Friday Puzzler - Access 2007 - "Report
View""OnFormat"and "On Paint" Events

Because the OnPaint event occurs when the section is actually redrawn.  By
that stage the 
size and location of the controls must already be determined?

-- 
Stuart

On 30 Oct 2010 at 6:54, Brad Marks wrote:

> For example in the "On Paint" Event
>   Me.Box1.BackColor = vbBlue
>   Works nicely
> 
> But the command
>   Me.Box1.Width = 1000
> does not work within the "On Paint" Event.  This puzzles me.
> 
> I would like to understand why.
> 

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the AccessD mailing list