Option Compare Database Option Explicit Sub Test_Proc() Dim cmd As New ADODB.Command Dim rst As ADODB.Recordset Set cmd.CommandText= "Select * from Customers" 'On Below Line Aceess gets hannged and pop-up comes for Restart Access cmd.ActiveConnection = CurrentProject.Connection Set rst = cmd.Execute End Sub
Dim con As New ADODB.Connection con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & CurrentProject.FullName con.Open ;;; your code ;;;; con.Close
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)