S
Stephen
Hello
I want to insert data from TABLE Master into TABLE tempAr. I have the
following so far. Both tables are in a Access Database
What am i doing wrong?
steve
SQLStatement = "Insert into tempAr(MasterId,Payment)(Select
MasterId,Cust_leasePmt from masterwhere cust_methodofPayment=2)"
SetUpDataBase()
reader = cmd.ExecuteReader()
conn.Close()
Private Sub SetUpDataBase()
On Error Resume Next
conn.Close()
conn.ConnectionString = cs
conn.Open()
cmd.CommandType = CommandType.Text
cmd.Connection = conn
cmd.CommandText = SQLStatement
End Sub
I want to insert data from TABLE Master into TABLE tempAr. I have the
following so far. Both tables are in a Access Database
What am i doing wrong?
steve
SQLStatement = "Insert into tempAr(MasterId,Payment)(Select
MasterId,Cust_leasePmt from masterwhere cust_methodofPayment=2)"
SetUpDataBase()
reader = cmd.ExecuteReader()
conn.Close()
Private Sub SetUpDataBase()
On Error Resume Next
conn.Close()
conn.ConnectionString = cs
conn.Open()
cmd.CommandType = CommandType.Text
cmd.Connection = conn
cmd.CommandText = SQLStatement
End Sub