Topic: SQL query to poppulate a tablegrid
To make a search and to fill a tablegrid in the main form, I use an SQL query.
After searching, if I try to edit a record, I get an error (Unable to determine the record ID). What is my error?
My Visual Database → SQL queries → SQL query to poppulate a tablegrid
To make a search and to fill a tablegrid in the main form, I use an SQL query.
After searching, if I try to edit a record, I get an error (Unable to determine the record ID). What is my error?
You have to add in your SQL query field id
Example: SELECT field1, field2, field3, id FROM table ...
also you can remove id column in table grid, let the name of this column delete_col
Example: Last Name, First Name, Surname, delete_col
Thank you for your answer.
I added id in the query, like you suggest but I received an error: ambiguous column name: id.
I changed it to Scheda.id, but now when I try to edit a record after searching, I get an Access violation error (attached picture).
Any idea?
Also: thank you for the delete_col tip!
Please, send me your project to support@drive-software.com
My Visual Database → SQL queries → SQL query to poppulate a tablegrid
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi