Doesn't refresh autoinc field in a joined query
Posted: Sun 23 Jan 2011 10:00
Hello,
I have aTMyQuery. The refreshOption.roAfterInsert = True.
If I use the query with one table only it refreshes the autoncrement field, but if i use a similar like below, it will not.
select distinct a.* from a left join b on (a.a_autoinc=b.b_a_autoinc);
In this case I can get the autoinc only if I refresh the whole query and that takes a lot of time. And I must get the autoinc after post because I need to insert rows in the detail table.
How can I do this?
Thank you in advance
I have aTMyQuery. The refreshOption.roAfterInsert = True.
If I use the query with one table only it refreshes the autoncrement field, but if i use a similar like below, it will not.
select distinct a.* from a left join b on (a.a_autoinc=b.b_a_autoinc);
In this case I can get the autoinc only if I refresh the whole query and that takes a lot of time. And I must get the autoinc after post because I need to insert rows in the detail table.
How can I do this?
Thank you in advance