Problem with [INCLUDEDOCLINK]

I’m in need of writing code to save a new document and mail it, in a Hotspot button.

When i place the line @mailsend (with [IncludeDocLink]) immediately after @command([FileSave]), an error message stating “Special Database object cannot be loaded” shows up. But it works fine when i save the document in any other part of code and then send mail with includedoclink.

How can this be solved?

Thanks in advance

Subject: Problem with [INCLUDEDOCLINK]

I think this means you don’t have a default view assigned for this database. Choose one of your views to be the default (view properties - second tab), then try the code again.

thanks

barry

Subject: RE: Problem with [INCLUDEDOCLINK]

Thank you barryI tried your idea, it works.

thanks.