Well.... the error is triggered by this code
vb Code:
Set rs22 = New ADODB.Recordset Dim sql2 As String sql2 = "SELECT * FROM baza_receptura WHERE nazvanje = " & Chr$(34) & string2klik & Chr$(34) rs22.Open sql2, con, adOpenDynamic, adLockOptimistic txtNazvanje.Visible = True txtNaziv.Text = rs22.Fields(4).Value 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.




Reply With Quote