Solved

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

Posted on 2013-11-22
4
830 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

624 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