|
|
Title | Set and use a bookmark in the DBGrid control |
Keywords | DBGrid, bookmark |
Categories | Controls |
|
|
Store the DBGrid's Bookmark property in a Variant variable. Later set its Bookmark property
to this variable to return the underlying Recordset to that record.
|
|
Private m_SavedBookmark As Variant
:
' Save the bookmark.
m_SavedBookmark = DBGrid1.Bookmark
:
' Restore the bookmark.
DBGrid1.Bookmark = m_SavedBookmark
|
|
For information on building your own ActiveX controls, see my book
Custom Controls Library.
|
|
|
|
|
|