I have simply taken Andreas' example and tried to quote correctly.Quincunxian wrote: ↑Mon Mar 17, 2025 10:47 pm
Can you give me an example of what you would pass in sWhere please, as I can't quite make sense of your SQL statement.
The sWhere doesn't make sense to me in this context either, but he wrote that this example worked for gb.db.
That's why I assumed that it could just be a problem with the quoting. As explained in my link to Wiki.
But it is not.
The following works for me with gb.db and gb.db.form but not with gb.db2 and gb.db2.form
rs = DB.Subst("SELECT * From [&1] WHERE '&2' = &3 Order by '&4' DESC", "Namen", "Vorname", "Risa", "Nachname")
So I can confirm the problem.