Last active
March 10, 2019 12:14
-
-
Save ezhov-da/dd24f72658d4dca5f94af56c936eb5d4 to your computer and use it in GitHub Desktop.
vba подключение к access без access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub Connect() | |
Set ADO = CreateObject("ADODB.Connection") | |
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\db.mdb" | |
ADO.ConnectionTimeout = 0 | |
ADO.CommandTimeout = 0 | |
ADO.Open ConnectString | |
zapros = "select * from T_ASSORTMENT_FOR_AUTOSHIP " & vbNewLine | |
ADO.Execute zapros | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment