Well.... the error is triggered by this code


vb Code:
  1. Set rs22 = New ADODB.Recordset
  2.         Dim sql2 As String
  3.  
  4.         sql2 = "SELECT * FROM baza_receptura  WHERE nazvanje = " & Chr$(34) & string2klik & Chr$(34)
  5.         rs22.Open sql2, con, adOpenDynamic, adLockOptimistic
  6.        
  7.         txtNazvanje.Visible = True
  8.         txtNaziv.Text = rs22.Fields(4).Value
  9.         txtNaziv.Visible = True


query gets a proper value, opens the connection
but.....
txtNaziv.Text = rs22.Fields(4).Value
after double click keeps an old value (previous one)

This happened only if you double-click newly created listitem inside first 2-3 seconds after its creation. Is it possible that database didn't write new record in database in that 2-3 seconds? And if it is true, how to override that?

P.S. I've realized that line which calls single click event inside of double click event is not the place which produces error.