Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
GeneralRe: UI Thread Pin
Michael Potter20-Oct-04 4:06
Michael Potter20-Oct-04 4:06 
GeneralRe: UI Thread Pin
eDip21-Oct-04 5:34
eDip21-Oct-04 5:34 
GeneralRe: UI Thread Pin
Michael Potter21-Oct-04 6:10
Michael Potter21-Oct-04 6:10 
Generalatrribute Pin
hagay_ar19-Oct-04 4:24
hagay_ar19-Oct-04 4:24 
General.Net Remoting Windows Service Server Pin
mablao19-Oct-04 4:23
mablao19-Oct-04 4:23 
GeneralRe: .Net Remoting Windows Service Server Pin
mav.northwind19-Oct-04 5:14
mav.northwind19-Oct-04 5:14 
GeneralRe: .Net Remoting Windows Service Server Pin
C LaMorticella15-Nov-04 6:21
C LaMorticella15-Nov-04 6:21 
Generalinserting to db using access db Pin
_sercher_19-Oct-04 4:20
_sercher_19-Oct-04 4:20 
Hi I'm a beginner, but this should still be a simple task. I want to insert some data to my access database. I can run my project, but when I try to insert the data this error message appears: "Operation must use an updateable query"

This is my code:
OleDbConnection conInsertNews;
string strInserNewst;
OleDbCommand cmdInsert;

conInsertNews = new OleDbConnection( "PROVIDER=Microsoft.....);

strInsertNews = "INSERT INTO Test ( Name, Number, Adress ) VALUES ( 'Bob' , '8' , 'Str A' )";
cmdInsertNews = new OleDbCommand( strInsertNews, conInsertNews );
conInsertNews.Open();
cmdInsertNews.ExecuteNonQuery();
conInsertNews.Close();

Can anyone help me with this?

Thanks!!


Searcher

GeneralDatabinding need help Pin
fortyonejb19-Oct-04 3:53
fortyonejb19-Oct-04 3:53 
GeneralRe: Databinding need help Pin
Christian Graus19-Oct-04 9:44
protectorChristian Graus19-Oct-04 9:44 
GeneralRe: collection question Pin
isittheweekendyet19-Oct-04 3:45
isittheweekendyet19-Oct-04 3:45 
GeneralRe: collection question Pin
sreejith ss nair19-Oct-04 5:09
sreejith ss nair19-Oct-04 5:09 
GeneralRe: collection question Pin
sreejith ss nair19-Oct-04 5:09
sreejith ss nair19-Oct-04 5:09 
Generaldelete string-value Pin
mathon19-Oct-04 3:32
mathon19-Oct-04 3:32 
GeneralDataGrid "Special Key" Confusion Pin
RockmanHero200319-Oct-04 2:00
RockmanHero200319-Oct-04 2:00 
GeneralOverride Pin
Anonymous19-Oct-04 1:42
Anonymous19-Oct-04 1:42 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:11
Colin Angus Mackay19-Oct-04 2:11 
GeneralRe: Override Pin
Anonymous19-Oct-04 2:28
Anonymous19-Oct-04 2:28 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:35
Colin Angus Mackay19-Oct-04 2:35 
GeneralRe: Override Pin
Anonymous19-Oct-04 3:08
Anonymous19-Oct-04 3:08 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 3:22
Colin Angus Mackay19-Oct-04 3:22 
GeneralRe: Override Pin
Anonymous19-Oct-04 4:28
Anonymous19-Oct-04 4:28 
Questionhow not to use proxy cashe. Pin
yu-yu19-Oct-04 0:39
yu-yu19-Oct-04 0:39 
GeneralAdding a checkbox column Pin
scotlandc18-Oct-04 23:43
scotlandc18-Oct-04 23:43 
GeneralRe: Adding a checkbox column Pin
Heath Stewart19-Oct-04 7:37
protectorHeath Stewart19-Oct-04 7:37 

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.