I have a form collection data and am using ListGetAt in an update query to save any changes.
If a user deletes an entry and then saves I get an error, "Invalid list index 7". If all entries are complete it works fine.
The fields are all Text boxes allowing zero lengths so don't think it's the database side.
Must every field be completed for ListGetAt to work, or is there something simple (Likely) I am missing.
If a user deletes an entry and then saves I get an error, "Invalid list index 7". If all entries are complete it works fine.
The fields are all Text boxes allowing zero lengths so don't think it's the database side.
Must every field be completed for ListGetAt to work, or is there something simple (Likely) I am missing.
Code:
UPDATE inc_KPI
SET
Last_Full_Year = '#ListGetAt(Last_Full_Year,x,",")#',
pct_increase = '#ListGetAt(pct_increase,x,",")#',
Previous_Full_Year = '#ListGetAt(Previous_Full_Year,x,",")#',
Comments = '#ListGetAt(Comments,x,",")#'
WHERE ID = #ListGetAt(ID,x,",")#