Jun 13, 2007 #1 jambai Programmer Mar 21, 2007 58 US Does anyone know how to get the @@Identity value after the insert query and use it in VBA. strIns = "Insert Query" Docmd.RunSQL, strIns I am using linked DataFlex table through ODBC. Thanks Jambai
Does anyone know how to get the @@Identity value after the insert query and use it in VBA. strIns = "Insert Query" Docmd.RunSQL, strIns I am using linked DataFlex table through ODBC. Thanks Jambai
Jun 13, 2007 #2 PWise Programmer Dec 12, 2002 2,633 US set rst = currentdb.openrecordset ("select @@identity as idval") a=rst!id Upvote 0 Downvote