I have a simple query that returns the data in a field.
selectstring = ("select invoicecompleted from mainjobdetails where jobno='" & jobnumber & "'")
cmdselect = New SqlCommand(selectstring, dbconnection)
status = cmdselect.ExecuteScalar()
I have a simple query that returns the data in a field. I then use the 'status' in an IF loop
However, I now need to return 2 fields in the query
selectstring = ("select invoicecompleted,iscancelled from mainjobdetails where jobno='" & jobnumber & "'")
I could bind the data to a grid and use it that way, but is there not a more simple way of capturing the 2 fields for use in the IF loop
selectstring = ("select invoicecompleted from mainjobdetails where jobno='" & jobnumber & "'")
cmdselect = New SqlCommand(selectstring, dbconnection)
status = cmdselect.ExecuteScalar()
I have a simple query that returns the data in a field. I then use the 'status' in an IF loop
However, I now need to return 2 fields in the query
selectstring = ("select invoicecompleted,iscancelled from mainjobdetails where jobno='" & jobnumber & "'")
I could bind the data to a grid and use it that way, but is there not a more simple way of capturing the 2 fields for use in the IF loop