• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Access 2007 Requery Not Working

Hello,

I have a form with multiple subforms on it.  The original application was written in Access 2000.  I requery a form that has totals on the bottom of it.

For Example: Field is Sales
In the bottom of the form in the footer is a field total that is =Sum([Sales])

I run some queries to build the subform data and then refresh the subforms as follows:
 
  Me.Parent.PlanPat.Requery
    Me.Parent.PatColorHist.Requery
    Me.Parent.PatSizeHist.Requery
    Me.Parent.PatHistSColorSize.Requery
    Me.Include.SetFocus
    Me.cmdUpdate.Visible = False
    Me.FormHeader.BackColor = -2147483633

The first time I make selections and run it, all is well.  If I change the criteia and run again, all the sum fields disappear.  I can sit for 10 minutes and they dont display.  If I pop off Acces to another open application like Outlook and pop back, the fields display fine.

Never had the problem before "07"  any thoughts are appreciated.
0
vmccune
Asked:
vmccune
  • 3
  • 3
1 Solution
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
You can try the basic stuff.
Create a blank A2007 accdb, then import all objects (except linked tables) from the A2000 mdb.

And even prior to this, just try a Compact and Repair on the ACCDB.

So ... you're saying it has never worked in A2007 ?

mx
0
 
vmccuneAuthor Commented:
Been there, done those.

I just tried makeing a buttom on the main for and requiered without the parent and it still does not work.

Its not a big requery and the table soruce for the form has only 18 records.
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
So .... the data is there right, just not displaying until you change focus to another app window and back?

mx
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
vmccuneAuthor Commented:
Yep.  Not only is the data there, all the records display fine and refresh EXCEPT the total buttons.
0
 
vmccuneAuthor Commented:
I think I found the probelm.  One field is calulated and is looping.  I am awarding you the points for helping me.
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
glad you found it ...

mx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now