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

ODBC coughing on logging into access table

Status
Not open for further replies.

Ogart

Technical User
Mar 26, 2003
104
US
Greetings:

An excel sheet pulls data from Access using ODBC. If the access application is closed, no problems. If it's open, I get the following:

"The database has been placed in a state by user "Admin" on machine xxxx that prevents it from being opened or locked."

The access file is set for pessimistic locking. All I want to do is pull information. Do I have to un-pessimistic lock that bad-boy for ODBC to pull the table I want? Is there a work around?

Any help would most definately be appreciated. Thanks in advance!!!

-Chris
 
Yes, Close the Access application.

Win2000P/Acc2000 - It's best to stay with products that work.
 
Bummer.

Is there a trigger to "push" data to that excel file instead of the excel file "pulling" data when it opens?
 
Take a look at the DoCmd.TransferSpreadsheet method.
Alternatively you may consider OLE automation.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top