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
Solved

=DLookup() and =Sum() not working (and they used to!)

Posted on 2013-11-22
4
819 Views
Last Modified: 2013-11-28
I have a datasheet as a subform. It has currency values in one field called EP.
In the footer is a field TtlEP with the control source =Sum([EP])

The parent form has a text box that has the control source =[Subformname]![TtlEP]

Worked perfectly last week, and has for months. I'm now doing some finally editing on visual aspects (like colour), and noticed the parent form total field is blank.

I've tried refreshing, requerying (with VBA) on both the subform and then the parent form. I even tried setting the ControlSource via VBA. No go. The only thing that works is if I press F9 OR if I set a requery method on a doubleclick within the field.

On another form, there's a text box that has a controlsource of DLookup("[NewYr]","qryYrs")   qryYrs has one field, is grouped, and the one field is set to max. This gives me the MaxCDYr, which is what I want - the largest year number in the table (4 records). The query is fine. The field no longer populates when the form is opened, but it used to. Again, I have to press F9 to get the field to populate.

I'm stumped.

Oh, and I even checked the references (although I may have missed one), did a repair/compact, ran the Linked Table Manager. No go.

BTW: it's an Access 2013 desktop database, split into FE and BE, both MSA2M13. I swear, it used to populate all the fields without having to do any code, requery, whatever. And there are no error messages or codes - just blank fields.

Any ideas, anyone?
0
Comment
Question by:Cinereo
  • 3
4 Comments
 

Author Comment

by:Cinereo
ID: 39670803
I created a brand new database. One table, one form. Create a calculated field in the footer with =Sum(myVal) as controlsource. Still no updates.

I went to the Navigation Pane and selected Object Type form, it didn't populate either. Not until I pressed the F5 key. Then it filled in. I checked the original database, same thing. Also, the toolbar at the top of Access is often greyed out (so I can't save there, have to go to File and Save, can't just click the Disk image.

Anyone else experiencing these issues?
0
 
LVL 40

Expert Comment

by:als315
ID: 39671670
Can you upload your new db?
0
 

Accepted Solution

by:
Cinereo earned 0 total points
ID: 39671973
Hi als315

Thanks for getting involved.

I could, but the problem is just now resolved. After additional investigation, it seems a colleague used the same machine to work on an Access 2007 program. Odd that I never got a configuration message when I ran Access 2013. (As it does when switching between, say A2007 and A2003).

Anyway, I ran the Quick Repair on Access 2013 and everything is working fine.

Cheers,
0
 

Author Closing Comment

by:Cinereo
ID: 39683151
1. Quick Repair worked. I hope others may benefit from this simple tidbit.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

839 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