A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

AfterFinalRender



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 05:27 AM posted to microsoft.public.access
PeterM
external usenet poster
 
Posts: 208
Default AfterFinalRender

I have a parent form and a child form in AC2003. I have searched this forum
and the web and cannot find an example of what I'm trying to do.

I need the child form to open only after the parenty form has completely
opened. The parent form has some charts on it and it takes some time to
open. After the parent form has finished completely, I want to open the
child form. That is, once the last chart on the parent form displays I want
to open the child form.

Based on the few examples I have found, I have the following in the parent
form I have:

Private Sub Form_Open(Cancel As Integer)
Me.Form.AfterFinalRender = "[EventProcedure]"

I've also tried:
Private Sub Form_Open(Cancel As Integer)
form(0).AfterFinalRender = "[EventProcedure]"

which doesn't work either.

In the AfterFinalRender event in the parent form I have:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
DoCmd.OpenForm "frmbackingupdatabase", acNormal, , , acFormEdit,
acWindowNormal, "Updating Outlook Calendar..."
End Sub

The code in the Form_AfterFinalRender in the parent form never gets called.

Can anyone tell me what I'm doing wrong?

I would really appreciate it.
  #2  
Old May 28th, 2010, 08:42 AM posted to microsoft.public.access
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default AfterFinalRender

From the help on msdn, there is some sample code.
Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub

Here are helpful descriptions:

After Final Render occurs after all elements in the specified PivotChart
view have been rendered.

Syntax:
expression.AfterFinalRender(drawObject )

expression A variable that represents a Form object.

Parameters:
Name Required/Optional Data Type Description
drawObject Required Object A ChChartDraw object. Use the methods and
properties of this object to draw objects on the chart.

Return Value:
nothing

Example:
The following example demonstrates the syntax for a subroutine that traps
the AfterFinalRender event.

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub
'end of descriptions from msdn----------------


Although I don't have experience with charts, I suggest you try something
like:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
Me.NameOfSubformControl.Visible = True
End Sub

Note: replace drawObject with your chart object, and NameOfSubformControl
with the name of the subform control on the main form. The subform and the
subform control may have different names.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"PeterM" wrote in message
...
I have a parent form and a child form in AC2003. I have searched this
forum
and the web and cannot find an example of what I'm trying to do.

I need the child form to open only after the parenty form has completely
opened. The parent form has some charts on it and it takes some time to
open. After the parent form has finished completely, I want to open the
child form. That is, once the last chart on the parent form displays I
want
to open the child form.

Based on the few examples I have found, I have the following in the parent
form I have:

Private Sub Form_Open(Cancel As Integer)
Me.Form.AfterFinalRender = "[EventProcedure]"

I've also tried:
Private Sub Form_Open(Cancel As Integer)
form(0).AfterFinalRender = "[EventProcedure]"

which doesn't work either.

In the AfterFinalRender event in the parent form I have:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
DoCmd.OpenForm "frmbackingupdatabase", acNormal, , , acFormEdit,
acWindowNormal, "Updating Outlook Calendar..."
End Sub

The code in the Form_AfterFinalRender in the parent form never gets
called.

Can anyone tell me what I'm doing wrong?

I would really appreciate it.



  #3  
Old May 28th, 2010, 07:47 PM posted to microsoft.public.access
PeterM
external usenet poster
 
Posts: 208
Default AfterFinalRender

Jeannette...

Thank you for the info. Could you provide the url in the msdn that you
found this explanation on?

Thanks again!

"Jeanette Cunningham" wrote:

From the help on msdn, there is some sample code.
Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub

Here are helpful descriptions:

After Final Render occurs after all elements in the specified PivotChart
view have been rendered.

Syntax:
expression.AfterFinalRender(drawObject )

expression A variable that represents a Form object.

Parameters:
Name Required/Optional Data Type Description
drawObject Required Object A ChChartDraw object. Use the methods and
properties of this object to draw objects on the chart.

Return Value:
nothing

Example:
The following example demonstrates the syntax for a subroutine that traps
the AfterFinalRender event.

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub
'end of descriptions from msdn----------------


Although I don't have experience with charts, I suggest you try something
like:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
Me.NameOfSubformControl.Visible = True
End Sub

Note: replace drawObject with your chart object, and NameOfSubformControl
with the name of the subform control on the main form. The subform and the
subform control may have different names.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"PeterM" wrote in message
...
I have a parent form and a child form in AC2003. I have searched this
forum
and the web and cannot find an example of what I'm trying to do.

I need the child form to open only after the parenty form has completely
opened. The parent form has some charts on it and it takes some time to
open. After the parent form has finished completely, I want to open the
child form. That is, once the last chart on the parent form displays I
want
to open the child form.

Based on the few examples I have found, I have the following in the parent
form I have:

Private Sub Form_Open(Cancel As Integer)
Me.Form.AfterFinalRender = "[EventProcedure]"

I've also tried:
Private Sub Form_Open(Cancel As Integer)
form(0).AfterFinalRender = "[EventProcedure]"

which doesn't work either.

In the AfterFinalRender event in the parent form I have:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
DoCmd.OpenForm "frmbackingupdatabase", acNormal, , , acFormEdit,
acWindowNormal, "Updating Outlook Calendar..."
End Sub

The code in the Form_AfterFinalRender in the parent form never gets
called.

Can anyone tell me what I'm doing wrong?

I would really appreciate it.



.

  #4  
Old May 28th, 2010, 08:01 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default AfterFinalRender

Go to http://msdn.microsoft.com/library and do a search of AfterFinalRender

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/djsteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)



"PeterM" wrote in message
...
Jeannette...

Thank you for the info. Could you provide the url in the msdn that you
found this explanation on?

Thanks again!

"Jeanette Cunningham" wrote:

From the help on msdn, there is some sample code.
Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub

Here are helpful descriptions:

After Final Render occurs after all elements in the specified PivotChart
view have been rendered.

Syntax:
expression.AfterFinalRender(drawObject )

expression A variable that represents a Form object.

Parameters:
Name Required/Optional Data Type Description
drawObject Required Object A ChChartDraw object. Use the methods and
properties of this object to draw objects on the chart.

Return Value:
nothing

Example:
The following example demonstrates the syntax for a subroutine that traps
the AfterFinalRender event.

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
MsgBox "The PivotChart View has fully rendered."
End Sub
'end of descriptions from msdn----------------


Although I don't have experience with charts, I suggest you try something
like:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
Me.NameOfSubformControl.Visible = True
End Sub

Note: replace drawObject with your chart object, and NameOfSubformControl
with the name of the subform control on the main form. The subform and
the
subform control may have different names.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"PeterM" wrote in message
...
I have a parent form and a child form in AC2003. I have searched this
forum
and the web and cannot find an example of what I'm trying to do.

I need the child form to open only after the parenty form has
completely
opened. The parent form has some charts on it and it takes some time
to
open. After the parent form has finished completely, I want to open
the
child form. That is, once the last chart on the parent form displays I
want
to open the child form.

Based on the few examples I have found, I have the following in the
parent
form I have:

Private Sub Form_Open(Cancel As Integer)
Me.Form.AfterFinalRender = "[EventProcedure]"

I've also tried:
Private Sub Form_Open(Cancel As Integer)
form(0).AfterFinalRender = "[EventProcedure]"

which doesn't work either.

In the AfterFinalRender event in the parent form I have:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
DoCmd.OpenForm "frmbackingupdatabase", acNormal, , , acFormEdit,
acWindowNormal, "Updating Outlook Calendar..."
End Sub

The code in the Form_AfterFinalRender in the parent form never gets
called.

Can anyone tell me what I'm doing wrong?

I would really appreciate it.



.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.