Results 1 to 5 of 5
  1. #1
    jasonbarnes is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2010
    Location
    NC
    Posts
    56

    Refreshing/Requery bounded textboxes

    I have a bunch of textboxes that are on a form. The form is bound to one table. This textboxes show metrics which are products of the table. Things such as Counts of certain fields etc.



    One textbox does a sum of one field. However for some reason this textbox gets hung up with old data and replicates the previous sum then sums them together. So if I had 100000 one time then opened it again it would be 200000. My control source is set to Sum([SumofTEUS]). And I can easily verify that the table itself is staying the same and what the number should be.

    Other parts of the data are manipulated on this form with action queries. All the corresponding boxes to these work fine. I refresh the textboxes to show the updated numbers by doing a requery to refresh the form. What should I do/try???

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    I don't understand this, James.

    You have a box with a sum in it? and it IS changing or it's NOT changing? and what's the event that's happening that's causing this unwanted behavior from the box? I didn't get that either.

  3. #3
    jasonbarnes is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2010
    Location
    NC
    Posts
    56
    I completely import new data to analyze at different intervals.

    First time around they all work flawlessly.
    If I open this form again.. the sum is doubled... but the counts still work fine.

    Therefore I'm not that sure what causes the unwanted behavior. Its almost like the Sum([fieldname]) is caching the old sum then doubling it. But if the form is bound to the same test table, and the control source is simply =SUM([fieldname]) what would cause this.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    You didn't answer my question at all, James.

    So let me see...you import data into the same table that you had it before and you're REPLACING the old data with the new? through the import wizard? Is the form open while you're doing this? If it is, it shouldn't be.

    it doesn't sound like anything is corrupted. it sounds like the methods are just a little bit off, and the program doesn't like it!

  5. #5
    jasonbarnes is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2010
    Location
    NC
    Posts
    56
    No the form is not open when I do the import.

    Yes - it is completely replacing the old data with new.

    I'll have to play with it some more and see if I can pin down the problem.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Requery only one record on a form
    By mkallover in forum Forms
    Replies: 3
    Last Post: 01-26-2011, 09:31 AM
  2. #Name? errors with textboxes
    By jasonbarnes in forum Forms
    Replies: 3
    Last Post: 12-16-2010, 09:51 AM
  3. Requery fails
    By Dega in forum Forms
    Replies: 3
    Last Post: 09-28-2010, 08:35 AM
  4. Requery?
    By CO711 in forum Forms
    Replies: 0
    Last Post: 08-06-2008, 08:03 AM
  5. Get average of unbound textboxes.
    By markhook in forum Forms
    Replies: 8
    Last Post: 07-14-2006, 09:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums