[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • Last Modified:

dlookup fields not refreshing all of a sudden

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
Sbovino
Asked:
Sbovino
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
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
 
SbovinoAuthor Commented:
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now