in reply to Re: Last Insert ID in MS Accessin thread Last Insert ID in MS Access
$idSQL = 'SELECT @@IDENTITY AS lastID'; $stmtID = $conn->prepare($idSQL); $stmtID->execute(); $row = $stmtID->fetch(); echo "Last insert ID is: " . $row["lastID"]; [download]