>Hi Mike!
>
>Why don't you simply set it modal? (Default is modeless...)
>
>Greetings
>Markus
>(MS MVP)
>
>>Hi All,
>>
>> I'm trying to find a way of keeping the user form leaving a form while it is in edit mode. the Show() method generates an error if the form is visible, and I don't want to temporarily hide it. Is there anything else I can try?
>>
>>Thanks,
>>
>>Mike
Or try something like:
in form.queryunload:
nodefault()
if this.editmode
messagebox("Can't leave while in edit mode",48,"")
this.cmdsave.setfocus
else
dodefault()
endif
Erik Moore
Clientelligence