I have a form with about 30 items a user could potentially update, which after they hit "submit" will update a table called tblMembers. I've been using a command object with the SQL update function, but in this case it seems like the SQL will become unwieldy. For example, this mess of SQL on a similar form that updates link information:
strUpdateSQL = "UPDATE tblLinks SET tblLinks.LinkURL ='" & Request.Form ("txtLinkURL"
& "'" & ", tblLinks.LinkName ='" & Request.Form ("txtLinkName"
& "'" & ", tblLinks.LinkDescription = '" & Request.form ("cboLinkDescrip"
& "'" & "WHERE tblLinks.LinkID=" & session("strLinkID"
& ""
only updates three fields. Imagine if there were 27 more fields being requested from the form!!!
Is there a cleaner, more economical way of doing this, possibly with an array or something? How much more water would there be in the ocean if it weren't for sponges?
strUpdateSQL = "UPDATE tblLinks SET tblLinks.LinkURL ='" & Request.Form ("txtLinkURL"
only updates three fields. Imagine if there were 27 more fields being requested from the form!!!
Is there a cleaner, more economical way of doing this, possibly with an array or something? How much more water would there be in the ocean if it weren't for sponges?