LogEvent 宏操作

适用于:Access 2013、Office 2013

LogEvent 操作可向 USysApplicationLog 系统表中写入信息。

注意

LogEvent 操作仅适用于数据宏。

Setting

LogEvent 操作具有以下参数。

参数 必需 说明
说明 一个用于描述要记录的条件的字符串表达式。 该描述不能超过 255 个字符。

备注

LogEvent 操作可用于向不应使用 RaiseError 操作引发错误的 USysApplicationLog 系统表中写入状态信息。 例如,您可以记录对特定字段的更改,或使用写入 USysApplicationLog 的项来帮助您调试宏。

When you use the LogEvent action to write to the USysApplicationLog table, the Category column is automatically set to User.

若要查看 USysApplicationLog 表,请执行以下步骤:

  1. 单击“ 文件 ”菜单,然后单击“ 选项”。
  2. "Access 选项" 对话框中,单击 "当前数据库" 选项卡。
  3. "导航" 部分,单击 "导航选项"
  4. "导航选项" 对话框中,单击 "显示系统对象",然后单击 "确定"
  5. 单击 "确定" 关闭 "Access 选项" 对话框。