Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
GeneralRe: InstallShield not registering a dll Pin
Russell Jones1-Jul-08 21:20
Russell Jones1-Jul-08 21:20 
Questionhow to add new node existing treeview control and bind data from table? Pin
Ashish Kumar Vyas1-Jul-08 4:35
Ashish Kumar Vyas1-Jul-08 4:35 
QuestionAccess Insert issue Pin
kruegersck1-Jul-08 3:53
kruegersck1-Jul-08 3:53 
AnswerRe: Access Insert issue Pin
led mike1-Jul-08 4:58
led mike1-Jul-08 4:58 
GeneralRe: Access Insert issue Pin
kruegersck1-Jul-08 5:04
kruegersck1-Jul-08 5:04 
GeneralRe: Access Insert issue Pin
led mike1-Jul-08 7:32
led mike1-Jul-08 7:32 
AnswerRe: Access Insert issue Pin
Guffa1-Jul-08 5:16
Guffa1-Jul-08 5:16 
GeneralRe: Access Insert issue Pin
kruegersck1-Jul-08 5:45
kruegersck1-Jul-08 5:45 
Here is my updated Code utlizing a parameterised query. I still get an error on my Insert Command stating: Syntax error in INSERT INTO statement.

The first field is a key and is a long int
The second field is a Text Field 255 long

Here is the code that does the insert. Please let me know of any issues. I can't find any:

string commandText = "INSERT INTO Contact_Notes (Contact_ID,Note) VALUES(@Contact_ID,@Note)";
string strConcat = "**** " + g_ProfName + " " + DateTime.Now.ToString() + " **** " + txtNewNote.Text;
conProspect.Open();
OleDbCommand cmd = new OleDbCommand(commandText,conProspect);
cmd.Parameters.Add("@Contact_ID", lngContactId);
cmd.Parameters.Add("@Note", strConcat);
cmd.ExecuteNonQuery();
conProspect.Close();
cmd.Dispose();

As always thanks for all the help
GeneralRe: Access Insert issue Pin
kruegersck1-Jul-08 5:48
kruegersck1-Jul-08 5:48 
GeneralRe: Access Insert issue Pin
Guffa2-Jul-08 2:53
Guffa2-Jul-08 2:53 
Questionhtml to pdf Pin
laziale1-Jul-08 3:41
laziale1-Jul-08 3:41 
AnswerRe: html to pdf Pin
BoneSoft1-Jul-08 4:16
BoneSoft1-Jul-08 4:16 
AnswerRe: html to pdf Pin
Thomas Stockwell2-Jul-08 2:29
professionalThomas Stockwell2-Jul-08 2:29 
QuestionWeird Socket behaviour after using NetworkStream Pin
__DanC__1-Jul-08 3:28
__DanC__1-Jul-08 3:28 
AnswerRe: Weird Socket behaviour after using NetworkStream Pin
leppie1-Jul-08 3:32
leppie1-Jul-08 3:32 
GeneralRe: Weird Socket behaviour after using NetworkStream Pin
__DanC__1-Jul-08 3:42
__DanC__1-Jul-08 3:42 
GeneralRe: Weird Socket behaviour after using NetworkStream Pin
leppie1-Jul-08 4:13
leppie1-Jul-08 4:13 
Questionhotkey work but i still want to send the HotKey to the current activated application [modified] Pin
troiszyzy1-Jul-08 2:57
troiszyzy1-Jul-08 2:57 
Questiondoes anyone have an idea? Pin
troiszyzy1-Jul-08 8:46
troiszyzy1-Jul-08 8:46 
AnswerRe: hotkey work but i still want to send the HotKey to the current activated application Pin
Michael90001-Jul-08 10:26
Michael90001-Jul-08 10:26 
QuestionRe: hotkey work but i still want to send the HotKey to the current activated application Pin
troiszyzy1-Jul-08 23:57
troiszyzy1-Jul-08 23:57 
AnswerRe: hotkey work but i still want to send the HotKey to the current activated application Pin
Michael90003-Jul-08 1:47
Michael90003-Jul-08 1:47 
QuestionWindows API question? Pin
Mohammad Dayyan1-Jul-08 2:21
Mohammad Dayyan1-Jul-08 2:21 
AnswerRe: Windows API question? Pin
DaveyM691-Jul-08 3:23
professionalDaveyM691-Jul-08 3:23 
GeneralRe: Windows API question? Pin
Mohammad Dayyan1-Jul-08 4:58
Mohammad Dayyan1-Jul-08 4:58 

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.