hi ray,
try padding the date with a "#" like #?#.
regards
Nagaraj.
--- ray <[EMAIL PROTECTED]> wrote:
> hi,
>
> i try to make a query in servlet to Ms Access
> with date condition
>
> e.g.:
>
> java.sql.Date dateFrom=new java.sql.Date(year-1900,
> month-1, day);
> java.sql.PreparedStatement st
> =conn.prepareStatement("Select... =?);
> st.setDate(1, dateFrom);
>
> The problem is i coudn't get the result as i got
> when i do the query
> directly in Ms Access Query.
>
> How can i sovle this problem
>
> thanks
>
> ray
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets