[AccessD] for each.... SOLVED

Bert-Jan Brinkhuis thevigil at kabelfoon.nl
Thu Mar 27 16:17:23 CST 2003


I started up my PC, after giving it a day rest and.... the problem was
solved without doing anything....

Bert-Jan

----- Original Message -----
From: "Bert-Jan Brinkhuis" <thevigil at kabelfoon.nl>
To: <accessd at databaseadvisors.com>
Sent: Tuesday, March 25, 2003 10:56 PM
Subject: [AccessD] for each....


> Hi group.
>
> The strangest thing is happening to me (which i was unable to solve the
past
> hour ;-( ):
> The following code used in one event is working fine and in the other not:
>
>  dim ctl as control
>
>  for eacht ctl in me.detail.controls
>      debug.print ctl.name
>  next
>
>  When it is working fine it lists all controls in the detailsection...
that
> is what i want
> When it doesn't work fine fine it only lists 1 control?
>
>  Why?
>
> And why it does lists that specific control i do not know? I gave it
another
> tab index and i replaced it on the form but still it will list the same
> control (i am rewriting someone elses database, so i do not know if that
> control was created first on that form, but i suspect that is the thing...
> does access keep another (hidden) order of controls on a form?)
>
> And while i was trying to solve this i found another strange thing..... (i
> will start a different thread for this aswell)
> I placed a breakpoint in the code to see how it was executed..... and it
> didn't jump to the breakpoint...?? And it does in other databases on the
> same PC!
>
> Bert-Jan
>
>
> _______________________________________________
> 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