vb6 - Highlight record in Datagrid through quick search -


i want highlight particular record in datagrid when record has been searched. quick search, user writes name , record instantly found. far have arrow pointing @ record need highlighted completely. images provided further explanation. code:

private sub txtquicksearch_change() dim varbookmark variant         studenttable                 varbookmark = .bookmark             if (.selbookmarks.count <> 0)                 .selbookmarks.remove 0             end if                 adodc1.recordset.movefirst                  adodc1.recordset.find "[last name] '" & txtquicksearch.text & "'"              if frmstudents.adodc1.recordset.bof                  .selbookmarks.add adodc1.recordset.bookmark                  end if         end end sub 

this how now

this how it

@jim hewitt, fixed problem, needed add statement: if not frmstudents.adodc1.recordset.bof , not frmstudents.adodc1.recordset.eof then


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -