My access database does not open. Any clue why? I have put refence to Microsoft activeX data objects 6.1 Library. I use Microsoft access 2016:
sub copydata()
dim accessdb as adodb.connection
dim accessdata as adodb.recordset
set accessdb = new adodb.connection
set accessdata = new adodb.recordset
accessdb.connectionstring = "provider=Microsoft.ace.oledb.12.0;Data source= s:\smart.accdb"
accessdb.open
end sub
sub copydata()
dim accessdb as adodb.connection
dim accessdata as adodb.recordset
set accessdb = new adodb.connection
set accessdata = new adodb.recordset
accessdb.connectionstring = "provider=Microsoft.ace.oledb.12.0;Data source= s:\smart.accdb"
accessdb.open
end sub