Results 1 to 3 of 3

Thread: how to force?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    32

    Question

    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 !!!

  2. #2
    New Member
    Join Date
    Jun 2000
    Posts
    8
    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


  3. #3

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    32
    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
  •  



Click Here to Expand Forum to Full Width