I need to insert this value into a table but make sure that it accepts null values, can anyone help?
CheckString(RemoveCarriageReturns(dreader.GetString(2)))
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
[/code] dbconnection2.Open() dbcommand2.CommandText = "select orderitemid,qty,description,despatched from tblorderitem where orderid = " & gloOrderID dreader = dbcommand2.ExecuteReader While dreader.Read dbconnection.Open() dbcommand.CommandText = "insert into " & tmptable & " (orderitemid,qty,description,despatched,outstanding,thisdelivery) values(" & dreader.GetInt32(0) & "," & dreader.GetInt32(1) & ",'" & CheckString(RemoveCarriageReturns(dreader.GetString(2))) & "'," & dreader.GetInt32(3) & "," & dreader.GetInt32(1) - dreader.GetInt32(3) & ",0)" dbcommand.ExecuteNonQuery() dbconnection.Close() End While [code]
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.