Hello Everyone

I am having a problem with the below mentioned code. It says Datatype mismatch. The bill no is a text field and not a numeric.

Code Code:
  1. Private Sub RetErive_Click()
  2. Dim e As String
  3. Dim sp As String
  4.  
  5. e = InputBox("Please Enter the Bill No", "Retrive")
  6.  
  7. Set ln = New ADODB.Connection
  8. Set ls = New ADODB.Recordset
  9. ln.ConnectionString = "Provider=microsoft.jet.oledb.4.0;" & "Data source =" & App.Path & "\Bills_Service.mdb"
  10. ln.Open
  11. sp = "Select * FROM BILLS WHERE Bill_No = " & e & ""
  12.  
  13. With ls
  14. [COLOR="Red"].Open sp, ln, adOpenKeyset, adLockPessimistic, adCmdText[/COLOR]
  15. End With
  16.  
  17. RID.Text = ls.Fields("RID").Value
  18. Dob.Value = ls.Fields("Date of Bill").Value
  19. Vend.Text = ls.Fields("Name of Vendor").Value
  20. BillNo.Text = ls.Fields("Bill_No").Value
  21. BillAmt.Text = ls.Fields("Bill Amount").Value
  22. Stat.Text = ls.Fields("Del To").Value
  23. Statdt.Value = ls.Fields("Del On").Value
  24. Remark.Text = ls.Fields("Remarks").Value
  25. CMC.Text = ls.Fields("CMC Ref No").Value
  26. CheqNo.Text = ls.Fields("Cheque No").Value
  27. Cheqdt.Value = ls.Fields("Cheque Date").Value
  28.  
  29. ls.Close
  30. ln.Close
  31.  
  32. End Sub

Can anybody tell me what is wrong with code

Thanks