Validating dblink attached in document

Hi, I have a richtext field in a form and user attached the dblink(link to same DB where Doc located) while composing the document and saved.

I have functionality like, if user clicks one action button it will copy all the items from one document to new document.

Here is my problem:

When user try to create new document using the button, it is throwing the error while copying the richtext field in which db link attached.

To prevent this I want to implement validation to check any db link attached in the richtext field before saving.

Can any one suggest me, whether it is possible to check for db link in document?

Thanks

Subject: Type Property

The LotusScript Type property of the RichTextItem is what you need. The designer help has examples. The EmbededObject method will allow you to check for a link and get it’s handle.

Subject: Thanks Jim