Hi all
I have a form based on a remote SQL Server View.
When I do a tableupdate on the save button, I require the new auto number from the key identity field. I cannot seem to get it. If I do a requery, the record pointer goes back to record number 1.
I have tried the @@Identity as below:
holder=SQLCONNECT("mydb", "sa", "a"
a=SQLEXEC(holder, "select @@identity", "newids"
WAIT WINDOW STR(a)
=SQLDISCONNECT(holder)
SELECT * from newids
But I keep getting .NULL.
Any ideas?
Thanks
ITFlash
I have a form based on a remote SQL Server View.
When I do a tableupdate on the save button, I require the new auto number from the key identity field. I cannot seem to get it. If I do a requery, the record pointer goes back to record number 1.
I have tried the @@Identity as below:
holder=SQLCONNECT("mydb", "sa", "a"
a=SQLEXEC(holder, "select @@identity", "newids"
WAIT WINDOW STR(a)
=SQLDISCONNECT(holder)
SELECT * from newids
But I keep getting .NULL.
Any ideas?
Thanks
ITFlash