Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Automation in VB Remote Server Error

Status
Not open for further replies.

GKatReliable

Programmer
Jul 2, 2002
45
US
My VB app uses an Access 2000 mdb.
I have 3 processes (subs) in my program.
In each one, I try to invoke Access and get out the same way:
===========================
Dim objAccess as New Access.Application
Set objAccess = GetObject(mdbFile)
With objAccess
DoCmd.OpenTable myTable
blah blah blah
End With
objAccess.Quit
Set objAccess = Nothing
============================
When I run ANY of the 3 subs individually first, they work just fine. But when I click on the SECOND one, it bombs (no matter which one it is) with Run-time error 462 The remote server machine does not exist or is unavailable.
The file is sitting in the same mapped NT network folder as the app. No special servers or anything.
I must not be releasing something properly, but I thought the code above was all you needed to do.
What am I leaving out?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top