Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating multiple fields in a form

Status
Not open for further replies.

lesleye

Programmer
Oct 1, 2004
2
US
I would like to display the values in my database, and then have the user Update more than one field in the form. The update command only allows to update a specific field. Is there a way to update multiple fields in the form?

Thanks: Lesley
 
What database system are you using, what form? This is the ANSI SQL forum, perhaps you should try a vendor specific forum instead.
 
update mytable
set myfield1 = value1
, myfield2 = 'value2'
, myfield3 = null
, myfield4 = etc
where mypkey = keyvalue

rudy
SQL Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top