Hi,
There are two different problems here, and I can't answer either immediately
[ul][li]Using Application.Run works for me with Access 2000, but gives the 2517 error with Access 97. I'm not sure why at the moment[/li][li]The 2465 error means that Access can't find the code, but I am getting confused here. Why are you trying to run code behind a button on a form when you are driving this from another application? Why not just put it in a module? If you are presenting the user with the Access form you shouldn't need to have your own code somewhere else - whatever is on the form will run fine when the user presses the button.[/li]
Am I making sense? Or am I simply failing to understand the blindingly obvious (again)?
Enjoy,
Tony