Solved

dlookup fields not refreshing all of a sudden

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

757 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

20 Experts available now in Live!

Get 1:1 Help Now