In that case, the code should be like frm.doc.fecha_salida and frm.doc.fecha_ingreso
frm.doc.fecha_salida and frm.doc.fecha_ingreso