The form you call must be modal. Form.WindowState = 1.
Hilmar.
>Hi, Dear All
> When I'm programm in a form, I wanna call a form by a buttom click event.
>The event Part like below:
>====================================================================
>Local LdDate
>Do FORM DATESelection With ThisForm.Available_Date.Value To ldDate
>.......
>====================================================================
>And When I run the form it always report that I couldn't use the do form X to command without in formset or modula format form. Error Code 1982.
>
>Is there anybody know how to avoid this problem?
>
>Thanks for your time.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)