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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error 3045

Status
Not open for further replies.

lovell811

Programmer
Jun 4, 2002
169
US
When I run through this code:

DbN = "\\Green4\MSSQL\DATA\MSSQL\Data\SalesInvent_Data.MDF"

Set PTDB = Workspaces(0).OpenDatabase(DbN)

it gives me "Runtime Error '3045' could not use: "\\Green4\blablabla, file already in us.

But it isn't, what's going on. Is it a problem in the code or with SQL??

----------------
Joe
 
Hi,

Could it be that you have a pending transaction meaning a transaction without a commit in that workspace on the SQL table?

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top