Solved

dlookup fields not refreshing all of a sudden

Posted on 2014-03-31
2
622 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vba DCount with 2 criteria 3 33
MS Access Append Query From CSV File Into Multiple Tables 26 47
Reset Active Directory Password via MS Access 9 52
Question to the line 4 37
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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…

948 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

21 Experts available now in Live!

Get 1:1 Help Now