My Follwing programe throws an Exception which is-java.sql.SQLException.....Data Type mismatch in criteria expression. In My program there are two customiazed class- 1. DBase() and 2-JDateChooser. DBase is used to connect database.JDateChooser is a class which creates a textfield with a calendar besides it. After selecting a date frm dat calendar it shows the date in MMM dd,yyyy format. It also returns the date by getDate() in dat format. I tried to get dat date and format it in dd mm yyyy format. But the above exception occurs.
The fields "Year" and "Income" are set as "Date/Time" format in MSAccess. My system date format is "MM dd yyyy".MSAccess also applies this(mm dd yyyy)format by default.Why does the exception occur then? PLS HELP ME.