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

Jim Dettman jimdettman at verizon.net
Mon Nov 1 06:59:04 CDT 2010


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




More information about the AccessD mailing list