what database platform are you using?

----- Original Message -----
From: Tom MacKean <[EMAIL PROTECTED]>
Date: Thu, 29 Jul 2004 14:52:08 +1000
Subject: [cfaussie] Identifying the record you have just created
To: CFAussie Mailing List <[EMAIL PROTECTED]>



Hi all,

I have a form that passes data to an INSERT INTO action page. That
page creates a new record with an incremented ID number (primary key).
Is there a way to find out what that ID number is so that it can be
used for another query on the same page?

I have a bodgy workaround whereby I set a value in a special field to
true, then cflocation to another page that searches for that true
value and picks up the ID number from the record. Then I set the
record to false once I have the number. There has to be a better way.

TIA,

TomNOTICE: Medical and scientific information provided in print and
electronically by Sydney IVF might not be relevant to your own
circumstances and should always be discussed with your own doctor
before you act on it. This communication is confidential and may
contain copyright or otherwise protected information of Sydney IVF
Limited or a third party. If you are not the intended recipient of
this communication please immediately let us know by reply email or
telephone us on +61 2 9221 5964, delete the communication and destroy
all copies. ---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED] Aussie Macromedia Developers:
http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to