【问题标题】:How to make data entry to the sql table from the MS Access front end using Pass-through query?如何使用 Pass-through 查询从 MS Access 前端向 sql 表输入数据?
【发布时间】:2016-01-07 09:18:39
【问题描述】:

我正在使用使用 MS Access 作为前端和 Sql Server 作为后端的应用程序。我使用 ODBC 连接连接到 Sql 服务器并使用 Passthrough 查询在数据表视图中填充表单。我想在数据表中添加一条新记录,该记录也应该插入到表中。如何使用 Passthrough 查询在表单的数据表视图中执行插入

【问题讨论】:

    标签: sql-server ms-access ms-access-2010 ms-access-2007 ms-access-2013


    【解决方案1】:

    你不能。根据定义,传递 SELECT 查询是只读的。

    PT 查询将 SQL 字符串发送到数据库服务器。如果ReturnsRecords 为 True,则显示返回的结果集,但不会创建可编辑的数据表。

    您的表单必须基于 Access 查询或直接基于链接的 ODBC 表。

    编辑:另见How to make a passthrough / passthru query editable?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-16
      • 1970-01-01
      • 1970-01-01
      • 2018-02-13
      相关资源
      最近更新 更多