|
-
Feb 24th, 2000, 03:45 AM
#1
Thread Starter
Hyperactive Member
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?
-
Feb 24th, 2000, 03:59 AM
#2
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
-
Feb 24th, 2000, 04:03 AM
#3
Thread Starter
Hyperactive Member
Thanks. I really need to get a new VB help disk :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|