thanks for that,
i tried what you suggested, it doesnt quite work as i would like. the form is still blank (no fields or buttons, only title) when there are no orders. i placed the code in the forms On Load event and solved that. but there are still problems
thanks again
I'm still working on it