I have an issue with an Access database which I set up to manage the total number of months worked by an employee over multiple temporary contracts with any time in a specific period subtracted. This was due to a necessity to control exactly how many months temporary staff had been employed by the company due to legal reasons (and there was a "discounted period" in which months worked did not count towards this maximum number of months a temporary employee can work).
The standard VBA funtions were not accurate enough (datediff etc) so I had to create customer functions in VBA that were accurate to 1 day. In the end the DB worked and everything was good.
For some reason the database did not work on all computers - error 3071 "this query is either incorrectly written or too complex to evaluate" appeared when running the bugger queries. I assumed that once the office packages were upgraded that these messages would stop appearing and over time all users would be able to use it.
However this didn't happen - there are in fact more computers which cannot view the complex queries after upgrading (although my machine has also been upgraded and it works absolutely fine.
I have checked:
- All computer are using Windows 7 v 6.1 Build 7601 SP1
- The VBA reference libraries seem to be different. My machine has Microsoft Access 15.0 Object Library & Microsoft Office 15.0 Access Database engine Object Library whereas the computers which can't run it seem to have version 12.0 of both these libraries.
I have tried:
- Updating the reference libraries for the computers with 12.0 however 15.0 doesn't appear to be available nor do I know how/if I should/if I can download said 15.0 libraries and install them on the machines where the DB doesn't work.
- As there are multiple quite complex calculated fields which are then summed to get to the final number, I tried extracting the complicated calculations to VBA custom functions. these custom functions work on my computer but don't work on the computers which cannot open the complex queries (I get a simple "#Error" value.
I have attached the code and some images to this post in case its helpful. I would really appreciate some insight in to why this is happening as after a day of googling, forum scavenging and documentation through-combing I've come up with zip.
Thanks a lot in advance for your help!
The standard VBA funtions were not accurate enough (datediff etc) so I had to create customer functions in VBA that were accurate to 1 day. In the end the DB worked and everything was good.
For some reason the database did not work on all computers - error 3071 "this query is either incorrectly written or too complex to evaluate" appeared when running the bugger queries. I assumed that once the office packages were upgraded that these messages would stop appearing and over time all users would be able to use it.
However this didn't happen - there are in fact more computers which cannot view the complex queries after upgrading (although my machine has also been upgraded and it works absolutely fine.
I have checked:
- All computer are using Windows 7 v 6.1 Build 7601 SP1
- The VBA reference libraries seem to be different. My machine has Microsoft Access 15.0 Object Library & Microsoft Office 15.0 Access Database engine Object Library whereas the computers which can't run it seem to have version 12.0 of both these libraries.
I have tried:
- Updating the reference libraries for the computers with 12.0 however 15.0 doesn't appear to be available nor do I know how/if I should/if I can download said 15.0 libraries and install them on the machines where the DB doesn't work.
- As there are multiple quite complex calculated fields which are then summed to get to the final number, I tried extracting the complicated calculations to VBA custom functions. these custom functions work on my computer but don't work on the computers which cannot open the complex queries (I get a simple "#Error" value.
I have attached the code and some images to this post in case its helpful. I would really appreciate some insight in to why this is happening as after a day of googling, forum scavenging and documentation through-combing I've come up with zip.
Thanks a lot in advance for your help!