O
Oreste
In one transaction dmax of autonumber return old value:
Workspace.BeginTran
? dmax("[id]", "myTable") --> 100
execute query that add one row on myTable
? dmax("[id]", "myTable") --> 100 (and NOT 101!)
Workspace.CommitTrans
? dmax("[id]", "myTable") --> 101 (Right! but too late!)
How can i obtain the new value of ID (primary key of myTable) within a
transaction?
Workspace.BeginTran
? dmax("[id]", "myTable") --> 100
execute query that add one row on myTable
? dmax("[id]", "myTable") --> 100 (and NOT 101!)
Workspace.CommitTrans
? dmax("[id]", "myTable") --> 101 (Right! but too late!)
How can i obtain the new value of ID (primary key of myTable) within a
transaction?