简体   繁体   中英

How to make data entry to the sql table from the MS Access front end using Pass-through query?

Im working with the application which uses MS Access as front end and Sql Server as back end. Im using ODBC connection to connect to Sql server and using a Passthrough query to populate a form in datasheet view. I want to add a new record to the datasheet which should also inserted into the table. How i can perform Insert in the datasheet view of the Form using Passthrough query

You can't. Pass-through SELECT queries are by definition read-only.

A PT query sends an SQL string to the database server. If ReturnsRecords is True, it shows the returning result set, but it doesn't create an editable datasheet.

You must base your form on an Access query or directly on a linked ODBC table.

Edit: see also How to make a passthrough / passthru query editable?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM