stickleprojects Level: Moderator

 Registered: 09-09-2002 Posts: 891
|
Re: FlexGrid? how to retrieve a the current recordset
Hi,
Add a hidden column and put the primary key into it, then when the user clicks a row, use this hidden column to find the row in the RS. ie
public function FindRSWhereCol0IsPK(gd as msFlexGrid, rsSource as recordset)as recordset
dim rsClone as recordset
set rsClone = rsSource.Clone
rsClone.Find "[pkfield]='" & gd.textmatrix(gd.row, 0) & "'"
if rsclone.eof then goto exith
set FindRSWhereCol0IsPK = rsclone
exith:
end function
Hope this helps
Kieron
PS. FlexGrid is not data-bound, as far as I am aware, hence the runaround.
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
|