Doc being modified

Hi,When the user clicks Esc,IF he has modified the document then promt him a msg “You want to save before closing?”

At first i put this code in the queryclose(see down).But now the user wants to prompt him ONLY when he has modified something in the doc.Is there something as ‘source.beingmodified’???or anything else?

Please help me.

If source.IsNewDoc Then

	reply% = Messagebox ("Voulez vous quitter sans enregistrer l'analyse?",52,"Avertissement")

	If reply% = 7 Then

		continue = False

	End If

End If

Subject: Doc being modified.

There is no inbuilt way to know if the document has been modified. However you could implement this by storing current values of all editable fields into variables while opening the form, and compare those values while closing the form.

Regards

Litty Joseph

Subject: Doc being modified.

Hi,

In order to know whether the user has been done any modifications or not, one can check whether the doc is in edit mode or not. If doc is not in edit mode the user cannot perform any modifications to the doc. More over there is no provision to check whether doc has been modified or not(except in edit mode or not).

So control your coding using

If Source.EditMode =True Then

End If

thanks,

-Ramesh