Solved

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

Posted on 2013-11-22
4
798 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
Comment Utility
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
Comment Utility
Can you upload your new db?
0
 

Accepted Solution

by:
Cinereo earned 0 total points
Comment Utility
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
Comment Utility
1. Quick Repair worked. I hope others may benefit from this simple tidbit.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

12 Experts available now in Live!

Get 1:1 Help Now