Hi!
I have a question regarding the SQL Select and "try...catch". The problem is that my SQL Select statement could sometimes return empty sets. For this reason I'm using "try...catch" statement. However, it doesn't work - the error message is generated for the empty set. So, how could I solve this problem? Thanks!
cmbFormType.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
try {
tableModel.setQuery("select F.at_code, F.at_size, F.at_visible from F inner join FT"
+ " on F.ft_code = FT.ft_code and F.ft_code = " + formTypeCodesArray[cmbFormType.getSelectedIndex()].toString());
} catch (Exception ex) {
}
}
});