![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
how to insert a record in Access database using sql statementshi,
I did a program for inserting a record in Access database using sql statements using CDatabase class. the code is as follows. it doesn't work properly. CPP / C++ / C Code:
if any body know, plz send me details. Regards, Raja.P Chennai. Last edited by LuciWiz : 22-Jul-2006 at 05:30.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
||||
|
||||
Re: how to insert a record in Access database using sql statementsThe problem is that you are trying to use a recordset for a SQL statement that does not return records, as you are performing an INSERT (not a SELECT).
This is all you need in the try block for that SQL: CPP / C++ / C Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Toyota - 2008 September Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusing Assignment/Three tier database access with c++ and oracle | Dyshein | C++ Forum | 0 | 01-May-2006 20:45 |
| Microsoft SQL Server :: SQL Server message 241, state 1, severity 16 | lyuboe | MySQL / PHP Forum | 0 | 11-May-2005 04:31 |
| retrieve record from access database in MFC | jinshi | MS Visual C++ / MFC Forum | 0 | 02-Feb-2005 09:29 |
| Access database and Visual basic programming | confused_pig | C++ Forum | 0 | 11-Jan-2005 18:59 |
| insert data into database | jilshi | Web Design Forum | 0 | 29-Apr-2004 22:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The