[Solved] Lookup field: error list index(-2) out of bounds lazarus / 16-Databases ---------------------------------------------------------------------- BlueIcaro · 2025-12-13 11:00 Hello, I trying to add a lookup field to a TSQLQuery, but I got error list index(-2) out of bounds, using SqlIte3 This TSQLQuery is in DataModule, and the TSQLite3Connection and TSQLTransaction are in other DataModule. I attact a image, when I got the error. Thanks for your help /Blueicaro ---------------------------------------------------------------------- BlueIcaro · 2025-12-15 08:59 Hello, I found the problem. I didn't have a index on the table. /BlueIcaro