With the code below, I get the “correct” Record, but from the other TABLE…
“SELECT * FROM Children WHERE ParentID=576;)”
I was so “stoned”… I changed the TABLE name (Children above) to Foo, compile run and get my Record…
NB: There is a Record ID 576 in another TABLE, related to the Children one (of Course, the Parent)…
Context:
The code is in the Open Event of the View by Record window. The db (SQLiteDatabase Reference) is used to populate the window and re-used to get a RowSet for the associated Children Record.
At first, I used the Variable used to get the Parent Record. To be sure there is nothing between the other TABLE and this one, I used its value.
Checked with Xojo version 2023r1.1 I think: same wrong result.
Some times I am asking what is this mojo business…