S
sam
How do I convert this ASP 3.0 to VB.Net coding?
ASP 3.0 Coding
-----------------
Set rs = Server.CreateObject("ADODB.Recordset")
rsstatm = "SELECT * FROM F4111"
rs.Open rsstatm, ConnSQL
rs.movefirst
do while not rs.eof
rsAdd = "INSERT INTO F4111A (ILITM,ILLITM,ILAITM) VALUES"
rsAdd = rsAdd & "( " & rs("ILITM")&","
rsAdd = rsAdd & "'" & rs("ILLITM") &"',"
rsAdd = rsAdd & "'" & rs("ILAITM") &"' )"
ConnSQL.Execute(rsAdd)
Set rsAdd = Nothing
rs.movenext
loop
rs.close
Set rs = Nothing
Set rsstatm = Nothing
Please help.
Many thanks.
ASP 3.0 Coding
-----------------
Set rs = Server.CreateObject("ADODB.Recordset")
rsstatm = "SELECT * FROM F4111"
rs.Open rsstatm, ConnSQL
rs.movefirst
do while not rs.eof
rsAdd = "INSERT INTO F4111A (ILITM,ILLITM,ILAITM) VALUES"
rsAdd = rsAdd & "( " & rs("ILITM")&","
rsAdd = rsAdd & "'" & rs("ILLITM") &"',"
rsAdd = rsAdd & "'" & rs("ILAITM") &"' )"
ConnSQL.Execute(rsAdd)
Set rsAdd = Nothing
rs.movenext
loop
rs.close
Set rs = Nothing
Set rsstatm = Nothing
Please help.
Many thanks.