Hi NiallThis work well thanks. However I do have another problem now I
think is to do with putting the script on the layout:ready. My fields
and subforms that are set to flow don't flow. i.e when you remove the
fields it just leaves the space and doesn't reset the form to close the
space. Is there another function that I can use this on that won't upset
my flowthanksmichelle