B
Bre-x
On my Access App, I have a confict between the
DAO 3.6 Library and Activex Data Object 2.1
Is there a way to change this function to a DAO? or anything else that will
not conflict with it?
Public Function my_conn(sql As String)
Dim cn As New ADODB.Connection
Dim cmd As New ADODB.Command
cn.ConnectionString = "DSN=cnc"
cn.Open
cmd.ActiveConnection = cn
cmd.CommandText = sql
cmd.Execute
cn.Close
Set cmd = Nothing
Set cn = Nothing
End Function
DAO 3.6 Library and Activex Data Object 2.1
Is there a way to change this function to a DAO? or anything else that will
not conflict with it?
Public Function my_conn(sql As String)
Dim cn As New ADODB.Connection
Dim cmd As New ADODB.Command
cn.ConnectionString = "DSN=cnc"
cn.Open
cmd.ActiveConnection = cn
cmd.CommandText = sql
cmd.Execute
cn.Close
Set cmd = Nothing
Set cn = Nothing
End Function