ms-access - Read conflict when empty sub-form
问题描述
I use MS Access as a front with Mysql as the database. I have set up a form in which I have to validate data entry due to an increased risk of duplicate entries in my db. In order to minimise the risk of duplicate entries, the validation form has a sub-form showing the results of a "view" from Mysql with previously existing names which seem similar. Upon validation, the VBA code will add to the record a timestamp and the current user.
When I started testing, I continuously received a "write conflict" error. After extensive search I found out that this had to do with the sub-form. So I have the following situation:
- Sub-form contains data - my validation form works perfectly fine and code is executed correctly;
- Sub-form contains no result - my validation form has a "write conflict" and my code cannot be executed correctly;
Sub-form data, by its set-up, cannot be edited (which is also not required).
I now ran out of ideas on how to resolve this, so I revert to this community.
---RESOLVED For this community, I have resolved my issue by setting Record Selectors to "No" and Navigation Buttons to "No" on the subform. No conflicts anymore.
解决方案
对于这个社区,我通过在子表单上将记录选择器设置为“否”并将导航按钮设置为“否”解决了我的问题。没有冲突了。
推荐阅读
- javascript - JS函数没有运行整个脚本
- swift - hello world 项目的 safari 应用程序扩展在几秒钟后崩溃
- android - 使用上游 Github Repo 使 Android Studio 保持最新状态
- c++ - 切换语句读取 C++ 中的每个输入
- javascript - 一定间隔后无法设置 document.title
- bash - 向 bash 命令发送信号
- ssis - 使用 getdate 时的 SSIS 有没有办法删除毫秒?
- css - 合并声明块
- python-3.x - Selenium:复选框不可交互(Python)
- c++ - 在 C++ 中将 128 位整数表示为两个 64 位整数