I am having a number of issues using forms and tables. Before I list the issues, here is a screenshot of one of the tables and one of the forms.
As you can see in the screenshot, I have a button in the table that I am using to move a record from one table to another. When that button is clicked, I am running a query to move the record. I build the query using the GUI option. Here is a screenshot of that:
I then try to run a query that will delete the record from the original table.
DELETE
FROM tp_new_order_2024
WHERE id = {{ table4.selectedRow.id }}
I then try to refresh each table to show that the record has been moved.
The problems are:
- The record is not showing up in the new table
- The record is not being deleted from the original table
- When adding a record with the form, the form does not clear, despite having that option checked. It populates with a random record.
I am sure there is a better way to do this. If anyone has any suggestions on a better way or a way to fix what I am using, I would really appreciate it.