Foreward function and my script libs

I have 2 similar forms in the same db. 1 has no references to any script libraries and the Foreward works fine. The 2nd one has a global option to the script library. In there is a snippet of code ( a Sub ) called LinkToDoc. This is used in buttons to get Help documents.When one tries to Foreward the second form, it gives ‘Not a Sub or Function name: LINKTODOC’.

The user just OKs these messages ( there are 2 or 3 and the Foreward goes ahead fine.

Any ideas??

THANKS

Subject: Foreward function and my script libs

The only way I’ve found to avoid this is to move the code your buttons run into an agent. Then change the buttons to run the agents instead of running the code in the script library.

HTH

Julie