Pregunta: | 60157 - OPERACIONES ENTRE CAMPOS EN UN FORMULARIO DE ACCESS |
Autor: | Miguel Loredo |
Requiero saber como realizar operaciones aritmeticas entre campos de un formulario de Access, por ejemplo. requiero determinar el GRAN TOTAL de (Importe - Subtotal - IVA - Total). Les agradecere su aportacion a esta pregunta. Milgracias de antemano.
Saludos!! |
Respuesta: | Enrique RamÃrez |
debes convertir las cajas de texto a numero con la funsion Val()
me.txt_GranTotal.value = val(me.txt_Importe.value) - val(me.txt_Subtotal.value) - val(me.txt_IVA.value) - me.txt_Total.value) |