Dim SQLStr As String
SQLStr = "UPDATE amenities SET [Accessible Parking On Site]='" & newName & _
"' WHERE HostelKey='" & hostel & "';"
This query updates the access database in the right field.
My problem is that I can't get it to work with the field [Accessible Parking On Site] being a variable. (newName and hostel are variables, I am using [] around the field name because some field names in the table have spaces).