Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im trying to insert value entered in textbox in to one column of ms access databse table using SQL .
Below is my code :
// Open the database
database.Open(NULL,false,false,sDsn);

// Allocate the recordset
CRecordset recset( &database );

x= m_CatID;
// insert data
recset.m_pDatabase->BeginTrans();
recset.m_pDatabase->ExecuteSQL(L"INSERT INTO Categories (CatID,Category) VALUES(?,'jhgjh)",x);


But in the above im getting error as too many arguments in function call.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900