How do I get the GUID value of a Record that I just Inserted ?
- From: "Mark Moss" <markmoss@xxxxxxxxxxxx>
- Date: Tue, 21 Feb 2006 09:21:41 -0700
How do I get the GUID value of a Record that I just Inserted ?
DM.DataModule1.ADOCommand1.CommandText := 'INSERT INTO Customer ' +
'( CustomerID, CardNumber, NameLast, DateTimeCreated,
DateTimeUpdated )' +
' VALUES ('
+
'NEWID()'
+ ',' +
chr(39) + Hold_Customer_CardNumber +
chr(39) + ',' +
chr(39) + Hold_Customer_NameLast +
chr(39) + ',' +
'GETDATE()'
+ ',' +
'GETDATE()'
+
' )';
DM.DataModule1.ADOCommand1.Execute(Records_Affected, EmptyParam);
It Inserts the record correctly, but I do not know how to get the GUID
Value for further Processsing
Mark Moss
.
- Follow-Ups:
- Re: How do I get the GUID value of a Record that I just Inserted ?
- From: Vitali Kalinin
- Re: How do I get the GUID value of a Record that I just Inserted ?
- Prev by Date: Re: An unknown error has occured...
- Next by Date: Re: How do I get the GUID value of a Record that I just Inserted ?
- Previous by thread: Tutorial MS ACCESS WITH DELPHI ?
- Next by thread: Re: How do I get the GUID value of a Record that I just Inserted ?
- Index(es):