<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBQuery.LastAutoIncValue</id>
	<title>PdcDBQuery.LastAutoIncValue - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBQuery.LastAutoIncValue"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBQuery.LastAutoIncValue&amp;action=history"/>
	<updated>2026-05-06T18:09:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcDBQuery.LastAutoIncValue&amp;diff=2988&amp;oldid=prev</id>
		<title>Arjan: Created page with &quot;== Declaration == LastAutoIncValue as integer  == Description == Returns the last value of the autoincrement field that is created by the query    == Notes == This method Retu...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBQuery.LastAutoIncValue&amp;diff=2988&amp;oldid=prev"/>
		<updated>2017-09-11T20:21:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == LastAutoIncValue as integer  == Description == Returns the last value of the autoincrement field that is created by the query    == Notes == This method Retu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
LastAutoIncValue as integer&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns the last value of the autoincrement field that is created by the query  &lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This method Returns the last value of the autoincrement field that is created by the query.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This code example executes a SQL statement and returns the LastAutoIncValue .  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
Sub sExecuteQuery&lt;br /&gt;
dim objQuery&lt;br /&gt;
dim intCnt&lt;br /&gt;
&lt;br /&gt;
  set objQuery = pdc.Database.OpenQuery(pdcConData)&lt;br /&gt;
  for intCnt = 0 tot 12&lt;br /&gt;
    objQuery.SQL = &amp;quot;INSERT INTO USERTABLE (USER1) VALUES (&amp;#039;TestField&amp;#039;)&amp;quot;&lt;br /&gt;
    if objQuery.Execute then&lt;br /&gt;
      msgbox objQuery.LastAutoIncValue&lt;br /&gt;
    else&lt;br /&gt;
      msgbox &amp;quot;Error:&amp;quot; &amp;amp; vbCrLf &amp;amp; pdc.LastError &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; &amp;quot;SQL:&amp;quot; &amp;amp; vbCrLf &amp;amp; objQuery.SQL&lt;br /&gt;
    end if&lt;br /&gt;
  next&lt;br /&gt;
  &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since September 2017(from version 5.3)&lt;/div&gt;</summary>
		<author><name>Arjan</name></author>
	</entry>
</feed>