-1

我有一个带有员工表及其 ID(关键字段)的小型数据库。我为此表创建了一个表单,并尝试添加一个按钮,该按钮允许用户在保存记录之前检查数据库中是否已经存在某个 ID。我正在尝试使用 FindRecord,但它似乎在搜索之前尝试更新该字段。这样我得到一个错误,我正在尝试使用现有的关键字段添加新记录。

有任何想法吗?

谢谢,摇晃

4

1 回答 1

0

You can create a combo box on your form to look up existing employee IDs. The wizard will guide you through creating the combo. The user can then type in a number or name and if it exits, the record will be shown. You can use the Not In List event to run code if the number is not found. This is usually quite nice for your users, because the autocomplete will "guess" the number.

find using combo

于 2013-01-22T20:15:41.083 回答