I am trying to update a single row in an Access DB, with values from an array of 19 text boxes.

Table name is tbl_Membership
MembID is the row to be updated

Is this Update statement along the right lines?

vb Code:
  1. Set cn = New ADODB.Connection
  2. cn.ConnectionString = strConnection & App.Path & "\Membership.mdb"
  3. cn.Open
  4.    
  5. strSQL = "UPDATE tblMembership Where MembID = " & lngSelection & _
  6.             "Set Firstname = " & txtMembership(0).Text
  7.             "Set Middle_Name = " & txtMembership(1).Text
  8.             'next 17 values inserted here
  9.  
  10. cn.Execute strSQL