all groups > vb.net upgrade > july 2004 >
You're in the

vb.net upgrade

group:

insert into problem



insert into problem Stephen
7/31/2004 12:23:05 PM
vb.net upgrade: 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

Re: insert into problem Stephen
7/31/2004 1:30:11 PM
sorry wrong group
[quoted text, click to view]

Re: insert into problem craig
8/14/2004 6:39:24 PM
I could be wrong... but...

SQLStatement = "Insert into tempAr(MasterId,Payment) values (Select
MasterId,Cust_leasePmt from masterwhere cust_methodofPayment=2)"


[quoted text, click to view]

AddThis Social Bookmark Button