C
Cecy
I'm using the next query to filled up a Grid on VisualBasic. I do need to
round "CurrMonto" to 2 decimals actually is showing 4.
SELECT IdGastos as IdNum, strRegistro as Registro, strGasto as [Detalle del
Gasto], CurrMonto as Monto, Cstr(Cstr(month(DateGasto)) + '/' +
Cstr(day(dateGasto)) + '/' + Cstr(year(dateGasto))) as [Fecha Gasto],
BooFactura as [Con Factura]
FROM tblGastos
where DateGasto " + "between #" + CStr(Format(DTPickerInicio.Value,
"mm/dd/YYYY")) + "# and #" + CStr(Format(DTPickerFin.Value, "mm/dd/YYYY")) +
"# "
Set reg = CN.Execute(SQL)
Set GridGastos.Recordset = reg
round "CurrMonto" to 2 decimals actually is showing 4.
SELECT IdGastos as IdNum, strRegistro as Registro, strGasto as [Detalle del
Gasto], CurrMonto as Monto, Cstr(Cstr(month(DateGasto)) + '/' +
Cstr(day(dateGasto)) + '/' + Cstr(year(dateGasto))) as [Fecha Gasto],
BooFactura as [Con Factura]
FROM tblGastos
where DateGasto " + "between #" + CStr(Format(DTPickerInicio.Value,
"mm/dd/YYYY")) + "# and #" + CStr(Format(DTPickerFin.Value, "mm/dd/YYYY")) +
"# "
Set reg = CN.Execute(SQL)
Set GridGastos.Recordset = reg