irri
09-01-2003, 04:16 AM
basically what i need is a way to bypass the fact that a person can click unther last row of the the datagrid so it doesn't create an error that there is no valid row availible.
Private Sub Datagrid_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Datagrid.Row = Datagrid.RowContaining(Y)
txtID.Text = rst.Fields(0) 'textbox is filled wit recordset value
end sub
I dont want to do this with catching errors.
Private Sub Datagrid_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Datagrid.Row = Datagrid.RowContaining(Y)
txtID.Text = rst.Fields(0) 'textbox is filled wit recordset value
end sub
I dont want to do this with catching errors.