error on IN-component in sql-string

H

Hans Kemper

I used the next string in a sql-string in VBA to access a
database other then the currentdb:

INSERT INTO tblSchemes IN 'C:\MY DOCUMENTS\SCHEMES'

The error-message I got (translated from Dutch):

You used the wrong brackets around C:\MY DOCUMENTS\SCHEMES

I tried also (...) {...} [...] "..." , doesn't work

What should it be

Thanks
Hans Kemper
 
V

Van T. Dinh

I normally use double-quotes since Windows uses double-quotes to enclose
pathname.

Perhaps, the problem is that you omitted the extension part of the file name
like ".mdb"???
 

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