Results 1 to 2 of 2

Thread: SOLVED////the action was cancelled by associated object

  1. #1

    Thread Starter
    Addicted Member Lina229's Avatar
    Join Date
    Sep 2001
    Location
    Guess !!!
    Posts
    157

    SOLVED////the action was cancelled by associated object

    i am using the following code to save after modifying a record :
    Private Sub Command4_Click()

    Command1.Enabled = True

    Command6.Enabled = True
    Command2.Enabled = True
    Command3.Enabled = True
    Command4.Enabled = False
    Command5.Enabled = False

    Data1.Recordset.Update
    Data1.Recordset.MoveFirst
    Call DISABLEALL



    End Sub

    after that the msg appeared : the action was cancelled by associated object

    and it highlighted : Data1.Recordset.Update


    any body?
    Last edited by Lina229; Nov 7th, 2001 at 11:38 AM.
    Where Ignorance Is Bliss , It's Folly To Be Wise
    ---------------------------------------------
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

    Best Regards;
    Lina

  2. #2

    Thread Starter
    Addicted Member Lina229's Avatar
    Join Date
    Sep 2001
    Location
    Guess !!!
    Posts
    157
    RESOLUTION
    Check the underlying recordset to see if either the BOF or EOF properties are True before allowing an implicit save to occur. An implicit save occurs either when using the data control to navigate off of a record where the information has changed or adding a record to a bound recordset.



    i had checked all of these BOF and EOF and they are set to true..

    what else could be the problem ?
    Where Ignorance Is Bliss , It's Folly To Be Wise
    ---------------------------------------------
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

    Best Regards;
    Lina

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