If I understand you correctly, you need the "autonumber" that was just
created when you inserted data into your db. If this is correct, try this:

<cfquery name="name" datasource="datasource">
        SELECT Max(ID) AS mid FROM Table_Name
</cfquery>

Hope that helps...

Mark

-----Original Message-----
From: Mike Weaver [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 22, 2000 7:20 PM
To: [EMAIL PROTECTED]
Subject: Newbie needs a little PRO help


This is a multi-part message in MIME format.

------=_NextPart_000_01FC_01BFF3F8.AC1EC580
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am developing an application which is going pretty well.  I have =
stumbled at a point where I need a query to generate the last entry in =
an access database.  I need the last entry in the "auto number" field =
that is generated each time you make an entry.  All assistance =
appreciated.

Mike

------=_NextPart_000_01FC_01BFF3F8.AC1EC580
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am developing an application which is =
going=20
pretty well.&nbsp; I have stumbled at a point where I need a query to =
generate=20
the last entry in an access database.&nbsp; I need the last entry in the =
"auto=20
number" field that is generated each time you make an entry.&nbsp; All=20
assistance appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Mike</FONT></DIV></BODY></HTML>

------=_NextPart_000_01FC_01BFF3F8.AC1EC580--

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to