Avatar

Level 7

Hi,

Reading from the "Help" (F1):

Note: Scripts that fire on layout:ready should not  do anything that would cause the layout of the form to change. For example, this  would include anything involving subforms or tables that grow or shrink, adding  fragments dynamically at run time, adding or removing subform instances, and  toggling the presence setting of an object between hidden and visible.

I would try the "initialize" event. Reading from "Help" (F1):

You can use this event to perform actions when an object is first created,  either as the result of a form filler action or during the form creation  process. For example, you can use this event to control settings for new  instances of a subform object that a form filler adds to the form by using a  button.

Good luck!

Stephen