<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>CFProject - SQL</title>
<link>http://www.cfproject.co.uk/index.cfm</link>
<description>A Coldfusion and javascript developement blog by Jonathan Shaw</description>
<language>en-gb</language>
<pubDate>Wed, 08 Sep 2010 11:14:02 +0100</pubDate>
<lastBuildDate>Sat, 07 Mar 2009 12:00:00 +0100</lastBuildDate>
<generator>BlogCFC</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<managingEditor>jonny@cfproject.co.uk</managingEditor>
<webMaster>jonny@cfproject.co.uk</webMaster>
<item>
<title>Select Last Number In Access</title>
<link>http://www.cfproject.co.uk/index.cfm/2009/3/7/Select-Last-Number-In-Access</link>
<description>
&lt;p&gt;I have recently been working on a ticketing system and i needed to know how to find they next number for the primary key. Took me a while to find out how to do it in access so i thought i would share it.&lt;/p&gt;
&lt;p&gt;Here is this SQL that i used.&lt;/p&gt;
&lt;code&gt;
SELECT LAST([Tickets.TicketID])+1 AS TicketID FROM Tickets
&lt;/code&gt;
&lt;p&gt;I know that with many of the better DBMS they can return the generated keys, But from what i found you can not do this with access.&lt;/p&gt;
&lt;p&gt;If you have found any easier methods then please feel free to share them.&lt;/p&gt;
</description>
<category>SQL</category>
<pubDate>Sat, 07 Mar 2009 12:00:00 +0100</pubDate>
<guid>http://www.cfproject.co.uk/index.cfm/2009/3/7/Select-Last-Number-In-Access</guid>
</item>
</channel></rss>