DAO : Can't drop Sql Server 2005 table

F

Franck

Hi,
Got problem with DAO and my Sql Server 2005 DataBase.
I can create table from vba using DAO, insert records, read them but
can't drop the table and can't figure out why !

Here is my code (basic!)
*****
Dim db As Database
Set db = OpenDatabase("", dbDriverNoPrompt, False, strConnect)

strSql = "DROP TABLE " & strTmpTable
db.Execute (strSql)

db.Close
*****

I checked the user's rights and it's good. Moreover, ADO works.

Any Help would be most welcome !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top