Hi,

My system dateformat is mm/dd/yyyy.

VB Code:
  1. Dim strSql as String
  2.  
  3. strSql = txtDate.Text ' mm/dd/yyyy format 03/04/2003
  4.  
  5. strSql = "select * from items where item_dt = #" & Format(strSql,"mm/dd/yyyy") &"#"
  6.  
  7. MsgBox strSql
  8.  
  9. ' The above shows
  10. ' select * from items where item_dt = #04/03/2003#

Can anybody please suggest me what format to use and how to go about such problems..

Thanks,
Pradeep