[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

dlookup fields not refreshing all of a sudden

Posted on 2014-03-31
2
Medium Priority
?
643 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
[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
2 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 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

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.

Question has a verified solution.

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

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

650 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