Solved

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

Posted on 2013-11-22
4
806 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 39

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now