I don't use data bound controls very often and this one just about never. My question is simple:
Is there a way to capture which of the 4 buttons they clicked? The MoveFirst, MovePrevious, MoveNext and MoveLast buttons?
Printable View
I don't use data bound controls very often and this one just about never. My question is simple:
Is there a way to capture which of the 4 buttons they clicked? The MoveFirst, MovePrevious, MoveNext and MoveLast buttons?
Try the Validate Event of the Data Control, it returns an Action Parameter which Tells you what Operation was Performed, ie.
Code:Private Sub Data1_Validate(Action As Integer, Save As Integer)
If Action = vbDataActionMoveFirst Then
Caption = "MoveFirst"
ElseIf Action = vbDataActionMovePrevious Then
Caption = "MovePrevious"
ElseIf Action = vbDataActionMoveNext Then
Caption = "MoveNext"
ElseIf Action = vbDataActionMoveLast Then
Caption = "MoveLast"
End If
End Sub
Thanks. I really need to get a new VB help disk :-)