Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Having trouble with proper syntax for sql update statement.

$
0
0
Hi,
I'm having a problem with updating multiple fields in the same row without updating one field at a time in the sql statement. Basically what would be the proper syntax for combining both statements? Any help would be appreciated.

sql1 = "update [NPI Tracker] set [Sales Price] = '" & TextBox13.Text & "' WHERE [RFQ #] = '" & TextBox4.Text & "'"

sql2 = "update [NPI Tracker] set [Gate 0 Approve Name] = '" & TextBox14.Text & "' WHERE [RFQ #] = '" & TextBox4.Text & "'"

 

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>