Access Developers Handbook - Strange Form Behavior 
Author Message
 Access Developers Handbook - Strange Form Behavior

I had fun with this one, and I am not at all sure I understand it, so
I thought I'd post it for your amu{*filter*}t, and solicit your comments.

I imported frmTabCustomers from Chap7.mdb on the CD Rom, and made some
modifications.  I  use it as a subform in my app, displaying a single
note on each 'page' of the tab form (the parent record on the main
form can have many notes).  Among the modifications, I took the code
from Form_Load and moved it into a public method called
RefreshDisplay.  I replaced the Form_Load code with the following:

Private Sub Form_Load()
   Me(mcstrTabCtl).Visible = False      ' hide tab control
   Me!txtNote.Visible = False           ' hide text box which replaces

                                        ' adh subform
   ' Both controls are made visible again in the RefreshDisplay Proc
End Sub

With this code in place, funny things started happening.
Specifically, when the form loads, the tabs (pages) on the subform
flicker on and off.  It appears to cycle through each of them turning
them all on and then cycle back through turning them all off.  The
whole process repeats several times, altogether taking twelve seconds
on my P150/64 Megs RAM.  There is no hourglass, but nothing in Access
is availible to the user while this is happening.

This behavior doesn't happen without those two lines in the  form load
event. ( However, the subform with its many tabs labeled Page40 and
the like does present a confusing appearance to the user.)

So that how I spent my morning....  Anybody have any comments or
explanations?

Cheers,

Gordon Young

(Strip the SPAM for the actual address)



Mon, 03 Jul 2000 03:00:00 GMT  
 Access Developers Handbook - Strange Form Behavior

A point to add:  Described behavoir is not strictly dependent on the
code - it happens also if the form controls Visible property is set to
false in design view.



Quote:
>I had fun with this one, and I am not at all sure I understand it, so
>I thought I'd post it for your amu{*filter*}t, and solicit your comments.

>I imported frmTabCustomers from Chap7.mdb on the CD Rom, and made some
>modifications.  I  use it as a subform in my app, displaying a single
>note on each 'page' of the tab form (the parent record on the main
>form can have many notes).  Among the modifications, I took the code
>from Form_Load and moved it into a public method called
>RefreshDisplay.  I replaced the Form_Load code with the following:

>Private Sub Form_Load()
>   Me(mcstrTabCtl).Visible = False  ' hide tab control
>   Me!txtNote.Visible = False               ' hide text box which replaces

>                                    ' adh subform
>   ' Both controls are made visible again in the RefreshDisplay Proc
>End Sub

>With this code in place, funny things started happening.
>Specifically, when the form loads, the tabs (pages) on the subform
>flicker on and off.  It appears to cycle through each of them turning
>them all on and then cycle back through turning them all off.  The
>whole process repeats several times, altogether taking twelve seconds
>on my P150/64 Megs RAM.  There is no hourglass, but nothing in Access
>is availible to the user while this is happening.

>This behavior doesn't happen without those two lines in the  form load
>event. ( However, the subform with its many tabs labeled Page40 and
>the like does present a confusing appearance to the user.)

>So that how I spent my morning....  Anybody have any comments or
>explanations?

>Cheers,

>Gordon Young

>(Strip the SPAM for the actual address)

Gordon Young

(Strip the SPAM for the actual address)


Mon, 03 Jul 2000 03:00:00 GMT  
 Access Developers Handbook - Strange Form Behavior

Subform  behavior, because they load first,then the form.  You may go thru
several times!

Quote:

> I had fun with this one, and I am not at all sure I understand it, so
> I thought I'd post it for your amu{*filter*}t, and solicit your comments.

> I imported frmTabCustomers from Chap7.mdb on the CD Rom, and made some
> modifications.  I  use it as a subform in my app, displaying a single
> note on each 'page' of the tab form (the parent record on the main
> form can have many notes).  Among the modifications, I took the code
> from Form_Load and moved it into a public method called
> RefreshDisplay.  I replaced the Form_Load code with the following:

> Private Sub Form_Load()
>    Me(mcstrTabCtl).Visible = False      ' hide tab control
>    Me!txtNote.Visible = False           ' hide text box which replaces

>                                         ' adh subform
>    ' Both controls are made visible again in the RefreshDisplay Proc
> End Sub

> With this code in place, funny things started happening.
> Specifically, when the form loads, the tabs (pages) on the subform
> flicker on and off.  It appears to cycle through each of them turning
> them all on and then cycle back through turning them all off.  The
> whole process repeats several times, altogether taking twelve seconds
> on my P150/64 Megs RAM.  There is no hourglass, but nothing in Access
> is availible to the user while this is happening.

> This behavior doesn't happen without those two lines in the  form load
> event. ( However, the subform with its many tabs labeled Page40 and
> the like does present a confusing appearance to the user.)

> So that how I spent my morning....  Anybody have any comments or
> explanations?

> Cheers,

> Gordon Young

> (Strip the SPAM for the actual address)



Fri, 14 Jul 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Access 2002 Access Developers Handbook - FormResize

2. Access 2000 VBA Handbook vis a vis Access 97 VBA Handbook

3. Access 97 Developers handbook

4. Access 97 Developer's Handbook

5. Access 2000 Developer's Handbook

6. Access 97 Developer's Handbook, Ken Getz, Paul Litwin, Mike Gilbert

7. Access Developer's Handbook

8. Access 2 Developer's Handbook - Pizza Order Posting Example

9. Missing Access Developer Handbook file

10. Access 2000 Developer's Handbook Vol 1: Desktop Edition

11. Strange Behavior in Data Form Wizard created Form

12. Strange wrapping behavior in form's textboxes...

 

 
Powered by phpBB® Forum Software