As I said before place the declaration in a module.
Remove it from your form, add it to a module and you should be fine.
You will continue to see this error if you continue to try to setup your API functions in your form code. It should not be there.




Reply With Quote