str = "UPDATE user_details SET username = '" & username & "', password = '" & password & "', firstName = '" & firstName & "', lastName = '" & lastName & "', email = '" & email & "' WHERE ID = '" & id & "'"
try that.. i put in the single quotes around your data