could you post the full code...including the codes where you display the updated value to the text box...just requerying alone will not help you...if you have to code to display your records in txtCode_Change, call it again or write
VB Code:
  1. rsStocks.Open "SELECT * FROM tblStocks WHERE Code = '" & txtCode.Text & "'", oConn, adOpenStatic, adLockOptimistic
  2.     If rsStocks.RecordCount <> 0 Then
  3.       txtSupply.Text = rsStocks.Fields("Quantity")
  4.       txtDesc.Text = rsStocks.Fields("ProductDescription")
  5.       'txtSellingPrice.Text = Format$(rsStocks.Fields("SellingPrice"), "P###,###,##0.00")
  6.     Else
  7.       txtSupply.Text = ""
  8.       txtDesc.Text = ""
  9.       'txtSellingPrice.Text = ""
  10.       txtSubTotal.Text = ""
  11.     End If