<TABLE id=reply cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<P>I had the same problem some time ago. I believe the loading order </P>
<P>changes if you change the layer of the subform (bring to front/send to back). </P>
<P>But my memory is not too clear about this, so please don't hit me if it </P>
<P>does not work ;-)</P>
<P>HTH,</P>
<P> </P>
<P>Michael</P>
<P> </P>
<P>accessd@databaseadvisors.com schrieb am 05.06.03 17:33:19:<BR></P>
<TABLE id=alt style="PADDING-LEFT: 10px; MARGIN-LEFT: 20px; BORDER-LEFT: blue 2px solid">
<TBODY>
<TR>
<TD>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a form with two embedded subforms.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On the OnCurrent event of the first subform, I synchronise the second one using the Filter and OnFilter properties of it.</FONT></DIV>
<DIV><FONT face=Arial size=2>This works fine, but generates an error the first time the Form is loaded.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is because I reference the second subform, but at this time it is not yet loaded.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I found a workaround by removing the first subform from the main form and reinserting it, as it seems Access loads the subforms in the same order at which they have been inserted.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However, I would like to have a more robust way of controling the loading order.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Do you have a better solution?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Philippe.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<HR>
_______________________________________________AccessD mailing listAccessD@databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com</TD></TR></TBODY></TABLE><BR><BR><BR></TD></TR></TBODY></TABLE>