>Mark,
>
>How do I close a modal form using this example.
>
>Thanks
I use _screen.formcount amd the _screen.activeform to loop through all forms and fire their QueryUnload method. Simplified version:
lnKount = _screen.FormCount
for i = 1 to lnKount
_screen.ActiveForm.QueryUnload()
endfor
Mark McCasland
Midlothian, TX USA