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

Unspecified Error

Status
Not open for further replies.

yagnik3128

Programmer
Jun 14, 2001
64
IN
I am using VB 6.0 with access

at this line of coding

mainconn.execute "Delte * from Table1"

I got the error

Run time error : 02147467259(80004005)
Unspecified error.

Can anybody help me how to solve it?




 
You have [tt]DELETE[/tt] spelled wrong, but I assume that's just a typo on the forum.

I assume you're trying to delete all rows in the table. Try:

[tt]DELETE FROM Table1[/tt]

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Could it be that 'Delete' is misspelled, or is that just a typo in the post?

zemp
 
Yes its a typo mistake.

It is not giving the error every time. there is a where condition also.



 
having checked a few other resources, this appears to be a sharing violation error at least in some instances.

are any other users or programs accessing the database at the same time? try opening the database in shared mode and/or make sure nobody else has the table locked at the time you are doing your delete *.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top