stnkyminky
Programmer
I have created a query in access 97 that inserts data into a table. When I initiate the query in access the data is inserted. When I attempt to initiate the query in vb, no rows are inserted? Can anyone help. Thanks in advance.
Dim cmdUpdate As ADODB.Command
Set cmdUpdate = New ADODB.Command
connstring = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=Y:\foo.mdb"
Project_My_Conn.ConnectionString = connstring
Project_My_Conn.ConnectionTimeout = 30
Project_My_Conn.Open
Set cmdUpdate.ActiveConnection = Project_My_Conn
cmdUpdate.CommandText = "foo"
cmdUpdate.CommandType = adCmdStoredProc
cmdUpdate.Execute Scott
Programmer Analyst
Dim cmdUpdate As ADODB.Command
Set cmdUpdate = New ADODB.Command
connstring = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=Y:\foo.mdb"
Project_My_Conn.ConnectionString = connstring
Project_My_Conn.ConnectionTimeout = 30
Project_My_Conn.Open
Set cmdUpdate.ActiveConnection = Project_My_Conn
cmdUpdate.CommandText = "foo"
cmdUpdate.CommandType = adCmdStoredProc
cmdUpdate.Execute Scott
Programmer Analyst