problem when adding data, i can't view the newly added correctly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaz215
    New Member
    • Nov 2007
    • 55

    problem when adding data, i can't view the newly added correctly

    when i add data it doesn't seem to go into the recordset immediately i have to close the program and reopen before i can see the newly added data. i tried refresh and requery but it doesn't seem to work
    Last edited by jaz215; Nov 14 '07, 02:34 AM. Reason: change the can to can't it was misleading
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by jaz215
    when i add data it doesn't seem to go into the recordset immediately i have to close the program and reopen before i can see the newly added data. i tried refresh and requery but it doesn't seem to work
    Could you give us some details about the version of VB, what sort of database, how you're accessing it, and so on?

    Comment

    • jaz215
      New Member
      • Nov 2007
      • 55

      #3
      Originally posted by Killer42
      Could you give us some details about the version of VB, what sort of database, how you're accessing it, and so on?
      I'm using VB6. I access data through the adodc connecting to MS Access. I just set the properties of the adodc to connect.

      The way I add is:
      Code:
      adodc.recordset.addnew
       <asigning values to textboxes conected to the adodc>
      adodc.recordset.update
      adodc.recordset.refresh
      It's just a basic code and it worked fine when I started but now it seems that something has gone wrong and I cannot view the added data immediately.

      Thanks.
      Last edited by Killer42; Nov 14 '07, 03:22 AM. Reason: Added CODE tag, corrected "can" again. :)

      Comment

      • jaz215
        New Member
        • Nov 2007
        • 55

        #4
        got the answer in another thread sorry for this. anyway to fix the problem i just have to refresh twice dont know why this is. thanks

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by jaz215
          got the answer in another thread sorry for this. anyway to fix the problem i just have to refresh twice dont know why this is. thanks
          Hm. Sounds like more of a workaround than a solution. But I guess if it works, that's what really matters.

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Sorry people, TSDN is English-only. I've deleted your posts.

            Comment

            • jaz215
              New Member
              • Nov 2007
              • 55

              #7
              Originally posted by Killer42
              Sorry people, TSDN is English-only. I've deleted your posts.
              Sorry about that Killer.. will use english from now on :P

              Comment

              Working...