Solved

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

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multiple tables for a tabbed form 2 33
need count all combination 31 33
I really need your help with access query 9 31
Email Headers 4 26
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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 …

751 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