|
-
Jul 9th, 2000, 01:40 PM
#1
Thread Starter
Member
hi! how to force the recordset not to move to the next record, if I check that in the 'rst_WillMove' event user made not valid input?
for example:
Private Sub rst_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
If not blnTest then
' something wrong, the record must stay the same !!!
End If
End Sub
*** VB6+Ado ***
thank You !!!
-
Jul 10th, 2000, 03:18 AM
#2
New Member
Perhaps this will help.
Private Sub rst_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
If not blnTest then
msgbox "Invalid Input"
exit sub
'text1.setfocus
End If
End Sub
-
Jul 10th, 2000, 08:08 AM
#3
Thread Starter
Member
nope, the solution was to write
"adstatus = adStatusCancel".
thanks!
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
|