Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Using OLEDB ATL wrapper and Jet 3.51 - on an INSERT can I retrieve the ID (primary key)
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th July 01:08
angus comber
External User
 
Posts: 1
Default Using OLEDB ATL wrapper and Jet 3.51 - on an INSERT can I retrieve the ID (primary key)



Hello

I am using ATL OLE DB classes to wrap OLE DB. When I for example do a:
INSERT INTO MyTable (Company, Address1) VALUES ('XYZ', '1 The Avenue')

I want to somehow then be able to get the primary key - so I then know
exactly which record I have created?

Is this possible? How would I do it?

By the way, I realise I could then do a SELECT statement using the field
values entered but is there an easier/better way?

Angus Comber
ac@NOSPAMiteloffice.com
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666