leonepaolo
Programmer
Hi,
How do I set this type of connection to current file I'm working on, i.e. vb code in Access. I get an error that the files been locked.
Any suggestions will be very much appreciated.
Thanks in advance,
Paolo
p.s.
I've tried a variety of things, but from VB6 this works, provided the file is closed.
Dim cnJet As New ADODB.Connection
Set cnJet = CreateObject("ADODB.Connection")
cnJet.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\MyFile.mdb"
How do I set this type of connection to current file I'm working on, i.e. vb code in Access. I get an error that the files been locked.
Any suggestions will be very much appreciated.
Thanks in advance,
Paolo
p.s.
I've tried a variety of things, but from VB6 this works, provided the file is closed.
Dim cnJet As New ADODB.Connection
Set cnJet = CreateObject("ADODB.Connection")
cnJet.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\MyFile.mdb"