CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    Hong Kong
    Posts
    18

    VB DdataEnvironment

    Hi, I get an error of "could not locate the row ..." when I delete a row which just added, why ? But it can be deleted when i quit the program and then execute again.
    Thank you !


    private Sub Command1_Click()
    DataEnvironment1.rscncustomer.AddNew
    me.txtCUSTID = "123456"
    me.txtCUSTNAME = "ABC company"
    DataEnvironment1.rscncustomer.Update
    DataEnvironment1.rscncustomer.Delete
    End Sub












  2. #2
    Join Date
    Sep 1999
    Posts
    15

    Re: VB DdataEnvironment

    Check for the EOF or BOF property of the recordset. Either of them is true. This can be the error


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

Featured