I want to get the day, month and year from combo boxes and making an update in my database after this date. I tried something like this:
can is the combo box for year, czi for day and cluna for month. It doesn't work like this, I receive an error. I think it should be something else instead of (String).
Hi,Iam Jaya.The problem you mentioned is not the reason why the code is failing.Type casting is possible.They are convertible types.There may be some other reason for the failure.Please give more details.
but the syntax is ok I already verify it in sql. if I put (Date) instead of (String) I don't get any errors but the update is not working when I look in the database.
You need a space between 'where' and 'datav' - and replace the last 'where' with an 'and'.
Normally you will have saved the date as a DATE or TIMESTAMP field in the database, and in Java you will pass the argument to the Statement as a java.sql.Date [ December 31, 2008: Message edited by: Rene Larsen ]