Solved

Access 2007 Requery Not Working

Posted on 2011-02-22
6
275 Views
Last Modified: 2012-05-11
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
Comment
Question by:vmccune
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 34954118
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
 

Author Comment

by:vmccune
ID: 34954172
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
 
LVL 75
ID: 34954241
So .... the data is there right, just not displaying until you change focus to another app window and back?

mx
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:vmccune
ID: 34954328
Yep.  Not only is the data there, all the records display fine and refresh EXCEPT the total buttons.
0
 

Author Comment

by:vmccune
ID: 34954377
I think I found the probelm.  One field is calulated and is looping.  I am awarding you the points for helping me.
0
 
LVL 75
ID: 34954427
glad you found it ...

mx
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question