Access DB user, all day every business day for 20 years, currently on Windows 10/64 bit with a 365 subscription. All updates applied. I have long standing clients with unchanged queries that suddenly start throwing #ERROR messages with string functions even though they've worked for years and just worked moments ago. I'll Compact & Repair or, sometimes, have to create a new DB and import which works temporarily but then it happens again - sometimes minutes, sometimes a day or two later. Understand there have been NO changes to anything between when it works and when the errors start throwing. Same DB, same query, same data, same expressions. One minute it works and the next minute it doesn't. Sometimes the DB will crash Access first withOUT catching the error and reopening with a compact & repair. These are long-working query expressions so it is not a coding error. I deal with a LOT of crummy data and use a LOT of string manipulation to help clean it up and retrieve embedded elements. This problem is killing me. I've never contacted MS support before but this is happening to at least one DB on a daily basis, sometimes multiple times a day, and I'm out of work-around ideas.
Trivial example: InStr("ABCDEFG","D") will and should return 4, of course, but even this expression, using constants instead of variables, will throw #ERROR (along with Replace, Left, Right, Mid, etc.) when it breaks. Oddly, it seems to me, I've only only had the problem with string functions. I've even tried it on multiple Windows/64 machines with identical results so it doesn't seem to be a corrupted DLL or hard drive.
Could the problem be 64 bit only? I installed the 32 bit version of Access to test this and things worked but I could only test for a short time since I use additional software to access the Access DBs which is 64 bit and I discovered it will only read from 64 bit Access so 32 bit is not an option.
Thanks