Please help,
I would like to update a datagride or MSHflexgrid with the returned
results from the following button_click procedure and then the user would
highlight the record and double click it which will move my ado recordset to
that record and populate my datafields on Form "FrmDataEnv"
Private Sub bttnadvfind_click()
prevbookmark = Adodc1.Recordset.Bookmark
filterAdodc1 = InputBox("Enter the first few letters of the LastName")
If filterAdodc1 = "" Then
Adodc1.Recordset.Filter = adFilterNone
Adodc1.Recordset.Bookmark = prevbookmark
Else
Adodc1.Recordset.Filter = "LastName Like '" & filterAdodc1 & "%'"
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.Filter = ""
Adodc1.Recordset.Bookmark = prevbookmark
MsgBox "No LastName in the database match your criteria "
End If
End If
End Sub
Should I use DataGrid or MSHflexgrid? This will be on a different Frm called
"frmflex" My Ado object is on the Form "frmdataenv" along with the command
button above. Can someone help me with the syntax or help me get started.
Thanks
Gerry