Forum Discussion
Access Error on File Import through VBA
We are running a custom VBA routine in Microsoft Access that imports and parses text files into a database. Starting around September 9th, some machines began showing an error dialog during this process. The dialog mentions a failure in the VBA Regular Expression engine.
The error does not occur consistently. On the same machine, the import may succeed several times and then fail (roughly 1 out of 4 attempts). The behavior appears to vary depending on the input file.
The VBA code itself has been unchanged for years and continues to function correctly on older builds. We are wondering if this is related to a recent update in Access or the VBA runtime.
Has anyone else encountered this behavior, and are there known workarounds or fixes?
Going to leave version numbers out of this post because it keeps getting deleted and I'm not sure why. This is my 4th or 5th attempt to write this post and it keep getting auto-moderated.
3 Replies
- Tom_van_StiphoutIron Contributor
There have been recent changes with RegEx. See this.
- JlorbzCopper Contributor
This must be the issue. Thank you very much.
- JlorbzCopper Contributor
Self reply test?