Dear Loungers,
Here is a problem that has been a stumper for me for the past 1 1/2 weeks.
The problem is in an MS Access 2003 database application. The problem only occurs on my new Windows 7 64-bit machines. It doesn’t occur on my Windows Vista or Xp 32-bit machines. I have tried uninstalling and reinstalling MS Office 2003 Prof. SP3, and even installing MS Office 2007. Doing this hasn’t solved the problem.
The Access database is set up with the queries loaded on the front end (.mde on the user’s PC), and they are linked to the database on a shared drive on a server (an .mdb file containing just the tables of data). The backend database is on Windows Server 2003. The database is password protected using the “Workgroup Administrator” password feature in Access.
The applications has Access forms with tabbed subforms. The problem is that when users are browsing through different tabbed forms/subwindows, some of the sub-forms are blank. In addition some of the subform menu bars dissapear. If I refresh the form, I get an error: “Function is not available in expressions in query expression ‘DateDiff …”
I was able to identify part of the problem based on the “Datediff” function error that is shown in attached word doc with screenshots. A library file for the MS Access was not linked correctly. I had to browse into the database and to the References, and point the references to the correct place. Please see the attachment entitled “Fixing a missing library file” for details.
However, after I did this fix, the problem came back again the next day.
Here are some solution requirements:
1) As an FYI – I inherited the MS Access database application with no documentation from a former IT admin. I did not code the application myself.
2) I don’t have VBA coding experience with Access or SQL databases. So please don’t just say “Run this VBA code” in your solution, because I won’t know where to add it to my Access application, or how to compile it. Please supply a website tutorila on VBA for Access databases if you can. I did study C++ and I have done Unix and some Windows shell scripting. (see my profile for more info). I do not use any SQL databases in the access application.
3) Please write out the instuctions with lots of spacing, and clear instuctions on where to find the options to adjust.
4) If you don’t write up a solution yourself, but link to a solution, please give a short intro to the solution.
Please see the attached MS Word files for clarity. One file displays the error. The second file shows the fix I implemented. I added a lot of screen shots for clarity.
This is a huge problem, because my users on the new computers cannot access all the data in the datebase from certain forms.
Thank you for your help.
-Peter