Solved

dlookup fields not refreshing all of a sudden

Posted on 2014-03-31
2
631 Views
Last Modified: 2014-04-01
I have been using the same database for years that uses a subform that has a series of fields populated by the dlookup command.  I am using Windows 7 and Office 2010.  Since last week in every one of these databases you need to click field by field for the data to appear. I have made no changes at all to the database.  I am assuming a Microsoft upgrade had something to do with this.

 I found out I can use the F9 key which immediately fixes this issue.  How can I fix this programatically?  I have tried the refresh and repaint method with no success.   What needs to get refreshed?  The main form,the sub form,  each dlookup field?  Thanks for any insight.
0
Comment
Question by:Sbovino
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39967469
Before diving into code, I'd first make sure your database is healthy. Make a backup, then do this:

Compact the Database - in 2010, click the File tab, and then click the Compact button.
Compile the database - open the VBA Editor, and click Debug - Compile. Fix any errors, and continue doing this until the menu item is disabled.
Compact again.

Sometimes it helps to Decompile. To do that, create a shortcut with this as the target:

"full path to msaccess.exe" "full path to your database" \decompile

Run that, then run the 3 steps above again.

Finally, you might consider moving everything to a new, blank database.

Also be sure that your installation of Windows and Office are fully up to date.
0
 

Author Closing Comment

by:Sbovino
ID: 39969026
Your advice was great but that was not the problem.  When I went home I was able to open and display my database data as designed on my home computer.(Windows 8).  Back at work a reboot solved the problem.  Not sure what happened but your advice is appreciated and I am sure I will refer to it in the future.  I never used dcompile.  Interesting as I have dealt with some damaged databases over the years.  Thanks again.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

861 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