I try to formulate a condition which is if my column x
contains Null
send me a message, if it is not so I fill a excel . I have a lake of this style, Thanks !!.
if (res.next()) {
while (res.next()) {
Row filaDatos = sheet.createRow(numfilaDatos);
for (int a = 0; a < numCol; a++) {
Cell celdaDatos = filaDatos.createCell(a);
celdaDatos.setCellValue(res.getString(a + 1));
}
numfilaDatos++;
}
fileOut = new FileOutputStream("Solicitud_R3.xlsx");
book.write(fileOut);
fileOut.close();
JOptionPane.showMessageDialog(null, "Archivo de Solicitud Generado");
} else {
JOptionPane.showMessageDialog(null, "No Existen Faltantes de R3");
}