replace data in base field / Reemplazar los datos de un campo en una tabla - Forum

Forum Navigation
You need to log in to create posts and topics.

replace data in base field / Reemplazar los datos de un campo en una tabla

@gaev, @vadim,@pauljonestindall,@ebear

ENGLISH

Let's see if you can give me a hand, I have a database called lavadero.mdb, inside there is a table called box that contains the following fields:
date (datetime) - cash (integer) - transfers (integer) and Debt (integer)

I need to replace all the values of the cash transfers fields with a value of 0 leaving the other two fields intact... some help please...

ESPAÑOL

A ver si me pueden dar una mano, tengo una base de datos llamada lavadero.mdb, dentro hay una tabla llamada caja que contiene los siguientes campos:
fecha (datetime) - efectivo (integer) - transferencias (integer) y Deuda (integer)

Necesito reemplazar todos los valores de los campos efectivo transferencias por un valor 0 dejando intactos los otros dos campos... alguna ayuda por favor...

@joferar333

I have a database called lavadero.mdb, inside there is a table called box that contains the following fields:
date (datetime) - cash (integer) - transfers (integer) and Debt (integer)

I need to replace all the values of the cash transfers fields with a value of 0 leaving the other two fields intact

Try this ...

dbpOpenAccessDatabase "myLavadero" "c:\path\to\lavadero.mdb" ""
neoDBProOpenTable "myLavadero" "box"
SetVar "[matchingRecords]" "[myLavadero.box.$RecCount]"

If "[matchingRecords]" ">" "0"
   Loop "1" "[matchingRecords]" "[thisMatchingRecord]"
      SetVar "[myLavadero.box.cash]" "0"
      SetVar "[myLavadero.box.transfers]" "0"
      dbpNext "myLavadero" "box"
   EndLoop
EndIf