cambiar estado en una columna desde datos de otra

Hola comunidad

Espero su ayuda para resolver un problema que puede ser sencillo para alguno de ustedes. 

Tengo una tabla de ACTIVIDAD COMERCIAL y otra de ALMACÉN, desde la tabla ALMACÉN quiero cambiar el estado de "libre de utilización" que esta por defecto, a  "asignado al cliente"  cuando en "ACTIVIDAD COMERCIAL" se genere una venta, el dato que comparo es un código de equipo, pero aún no puedo formular bien el código. 

He intentado generar acciones y bots pero ya no se como formular esa lógica. 

Gracias por su ayuda estoy pendiente si necesitan datos adicionales. 

0 1 141
1 REPLY 1

It's not entirely clear what you need to accomplish. If the following doesn't help, you should elaborate--including illustrative screenshots--regarding the specific columns in each table, how the tables are related, what is the trigger for the data change you want to make, and what is the data change you want to make.

My best inference is that you need something like the following:

  1. In the Almacén table, create an action that sets the value of the desired column to "asignado al cliente".
  2. Create an automation with an event triggered by a new row being added to the Actividad Comercial table.
  3. Include in the automation a step that runs a data change action that executes an action on a set of rows. For the referenced rows, enter an expression that returns the row(s) whose data you want to change--perhaps something like SELECT(Almacén[ID], [Código de equipo] = [_THISROW].[Código de equipo]). For the referenced action, select the action from step 1.
Top Labels in this Space