Results 1 to 2 of 2

Thread: How to trap record change event

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203

    How to trap record change event

    Im trying to disable all text fields whenever user changes the record using that DB tolbar kindof thing....I think.. whaddyacallit...the ADO Data Control ??.......now the problem is that how do I trap a record changed kindof event... I dont know where that is....the other thing I tried doing was tried putting the disable code in the change event of the PK text field...but even that isnt invoked until the user manually changes its value....

  2. #2
    Banned SCIROCCO's Avatar
    Join Date
    Jul 2004
    Location
    www.scirocco.ca
    Posts
    11
    If you use ADO directly you can declare your recordset with the WithEvents property:

    Private WithEvents rsSCIROCCO As ADODB.Recordset

    Then you will have access to a host of events like:

    RecordChangeComplete
    WillChangeRecord

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