I'm using DBUtils.ExecuteMap to get an ID from the database like this.
findID = DBUtils.ExecuteMap(SQL, "SELECT ID FROM GemteLokationer ORDER BY ID DESC", Null)
I use this to get the newest ID and increment it for the next post.
The first time I run this where the App create the database and table it works okay.
But when delete all posts in the table and start the App again i crasches.
It crasches in DBUtil on line 214
cur = SQL.ExecQuery(Query)
Is there method to check if a table is empty?
Or another way to do what I do?
P.S.
I deleted the posts in a SQLIte App on the phone not in my App.