So I have looked at SQL statements in the Help window Primary & Mandatory keys and input this as an SQL statement:
select Iif(max(Id) is null, 0,max(Id) + 1) from Test
based on this example in the Help window:
select Iif(max(YOUR_COLUMN_NAME) is null, 0,max(YOUR_COLUMN_NAME) + 1)
from YOUR_TABLE_NAME
when I test query it says: 10
What is wrong, how do I fix it and what would need to come out of the test query to know that it is right?