Click here to Skip to main content
15,911,030 members
Home / Discussions / Database
   

Database

 
GeneralNeed Help Pin
Anthony98876-Apr-03 10:11
Anthony98876-Apr-03 10:11 
GeneralDatabase recovery Pin
pradipta4-Apr-03 19:50
pradipta4-Apr-03 19:50 
GeneralRe: Database recovery Pin
Bruce Duncan4-Apr-03 23:41
Bruce Duncan4-Apr-03 23:41 
GeneralRe: Database recovery Pin
pradipta5-Apr-03 0:44
pradipta5-Apr-03 0:44 
GeneralRe: Database recovery Pin
Bruce Duncan5-Apr-03 7:39
Bruce Duncan5-Apr-03 7:39 
GeneralRe: Database query Pin
pradipta4-Apr-03 19:36
pradipta4-Apr-03 19:36 
QuestionTextual dumps possible in SQL Server? Pin
Smitha Nishant4-Apr-03 17:40
protectorSmitha Nishant4-Apr-03 17:40 
GeneralAutonumber into Access Pin
MemLeak4-Apr-03 8:00
MemLeak4-Apr-03 8:00 
Hi,

I want to call an INSERT into my access database via ADO.

To do that operation I use the Execute fonction.

CString query = "INSERT INTO Clinic
VALUE(ClinicID,ClinicName,Address,City,PostalCode,PhoneNumb,FaxNumber,Email,Notes)";

m_pCmdChange->ActiveConnection = m_pConn;
m_pCmdChange->CommandText = (_bstr_t)query;

// CommandText property already set before function was called.
m_pCmdChange->Execute(NULL, NULL, adCmdText);

Into my table, I have a fields named ClinicID that is a Access AutoNumber.

If I execute the preceding code, it work fine except the fact that I have to enter ClinicID that is a autonumber.

My problem is that if I do an execute() I have to add an imput for each fields including ClinicID.

So my question is How can I add a new record into my table without the obligation to enter ClinicID?

thanks





Everything's beautiful if you look at it long enough...
GeneralRe: Autonumber into Access Pin
Chris Meech4-Apr-03 10:16
Chris Meech4-Apr-03 10:16 
GeneralRe: Autonumber into Access Pin
Waleed Eissa6-Apr-03 2:26
Waleed Eissa6-Apr-03 2:26 
GeneralBeginner Question Pin
Brent Corkum4-Apr-03 5:16
Brent Corkum4-Apr-03 5:16 
GeneralRe: Beginner Question Pin
Anonymous4-Apr-03 5:58
Anonymous4-Apr-03 5:58 
GeneralSQL Server -> trigger -> event -> caught by C# program Pin
zoltan_ie4-Apr-03 0:23
zoltan_ie4-Apr-03 0:23 
GeneralMystery of the Vanishing Field Data Pin
J. Dunlap3-Apr-03 16:57
J. Dunlap3-Apr-03 16:57 
GeneralPrimary Key Pin
Anthony98873-Apr-03 15:49
Anthony98873-Apr-03 15:49 
Questionhow to access msde Pin
ajaykalekar3-Apr-03 8:17
ajaykalekar3-Apr-03 8:17 
AnswerRe: how to access msde Pin
Alexander Kojevnikov4-Apr-03 5:09
Alexander Kojevnikov4-Apr-03 5:09 
GeneralAdding records:O) Pin
MemLeak3-Apr-03 5:01
MemLeak3-Apr-03 5:01 
GeneralRe: Adding records:O) Pin
Alexander Kojevnikov4-Apr-03 5:13
Alexander Kojevnikov4-Apr-03 5:13 
GeneralEmpty fields Pin
MemLeak3-Apr-03 2:36
MemLeak3-Apr-03 2:36 
GeneralLarge Field size (>64k) Pin
Ryan Binns1-Apr-03 19:30
Ryan Binns1-Apr-03 19:30 
GeneralRe: Large Field size (>64k) Pin
Hesham Amin1-Apr-03 22:35
Hesham Amin1-Apr-03 22:35 
GeneralDatabase query Pin
pradipta1-Apr-03 19:24
pradipta1-Apr-03 19:24 
GeneralRe: Database query Pin
Alexander Kojevnikov1-Apr-03 21:01
Alexander Kojevnikov1-Apr-03 21:01 
GeneralRe: Database query Pin
pradipta1-Apr-03 21:43
pradipta1-Apr-03 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.