Updating selected values of a multi select field via Deluge

Updating selected values of a multi select field via Deluge

Hello,

I have a form with a multi select field with a couple of options. My form already has a few thousand entries, and now I need to add and select a third option for that multi select field. This is the code I'm trying to use:

  1. //Fetching all records of the form Nueva_venta
  2. todas = Nueva_venta[ID != 0];

  3. //Go through each record and select the new option
  4. for each entry in todas
  5. {
  6. entry.Acceso.select ("operaciones@simstore.ec");
  7. }

The error I get is: 'Acceso' does not exist in this form

I was also thinking that instead of entry.Acceso.select (" operaciones@simstore.ec"); I could use entry.Acceso = " operaciones@simstore.ec" but then the other selected records would be erased. What is the proper way to select a new option on a multi select field for old records?