Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Books on Dot Net Pin
clife53720-Oct-06 23:43
clife53720-Oct-06 23:43 
AnswerRe: Books on Dot Net Pin
Michael P Butler20-Oct-06 4:43
Michael P Butler20-Oct-06 4:43 
QuestionGeneric webservice proxy Pin
WillemM20-Oct-06 3:31
WillemM20-Oct-06 3:31 
AnswerRe: Generic webservice proxy Pin
LongRange.Shooter23-Oct-06 4:43
LongRange.Shooter23-Oct-06 4:43 
GeneralRe: Generic webservice proxy Pin
WillemM23-Oct-06 7:35
WillemM23-Oct-06 7:35 
QuestionWindows Service Pin
subrata.jana20-Oct-06 3:21
subrata.jana20-Oct-06 3:21 
AnswerRe: Windows Service Pin
J4amieC20-Oct-06 3:34
J4amieC20-Oct-06 3:34 
QuestionUsing textbox as Query filter MS Access Pin
Rick van Woudenberg20-Oct-06 3:13
Rick van Woudenberg20-Oct-06 3:13 
Hello all,

I'm pretty new to C#, but I enjoy it very much. I have the following problem, that I can use some help with. I searched the net, MSDN forums, articles on here, but I can't seem to figure it out. I'm using C# Visual Studio 2005, which works slightly different then other editors I have used before.

What I'm trying to achieve is using a textbox value ( txtEditLoch ) as a filter in an SQL query. I created a dataset and I can add queries. One of my queries looks like this :

SELECT lochname, nmt_no, nmt_type, nmt_ph, nmt_loc, nmt_con_type, nmt_ip_address, nmt_comments
FROM nmt_info
WHERE (lochname = ' + this.txtEditLoch.Text + ')

This doesn't work. When I change the this.txtEditLoch.Text bit to an existing database value, it works perfect.
The textbox is populated with exactly with that same existing database value. I think I have got my query wrong. Can somebody please point me in the right direction.

Any help is much appreciated.
AnswerRe: Using textbox as Query filter MS Access Pin
Eric Dahlvang20-Oct-06 4:02
Eric Dahlvang20-Oct-06 4:02 
Questionhow to use the PrintDocument and PrintDialog? Pin
quiteSmart20-Oct-06 3:00
quiteSmart20-Oct-06 3:00 
QuestionHow to get the Month name instead of the month number Pin
Support12320-Oct-06 2:40
Support12320-Oct-06 2:40 
AnswerRe: How to get the Month name instead of the month number Pin
ejuanpp20-Oct-06 2:57
ejuanpp20-Oct-06 2:57 
GeneralRe: How to get the Month name instead of the month number Pin
Support12320-Oct-06 3:08
Support12320-Oct-06 3:08 
GeneralRe: How to get the Month name instead of the month number Pin
Support12320-Oct-06 3:36
Support12320-Oct-06 3:36 
GeneralRe: How to get the Month name instead of the month number Pin
J4amieC20-Oct-06 4:54
J4amieC20-Oct-06 4:54 
AnswerRe: How to get the Month name instead of the month number Pin
quiteSmart20-Oct-06 3:03
quiteSmart20-Oct-06 3:03 
QuestionCursor not visible after DroppedDown property is set to true Pin
chettu20-Oct-06 1:56
chettu20-Oct-06 1:56 
QuestionTablet Xp Pin
sathishtl00720-Oct-06 1:33
sathishtl00720-Oct-06 1:33 
QuestionHow to draw over a image and it be save? Pin
sathishtl00720-Oct-06 0:48
sathishtl00720-Oct-06 0:48 
AnswerRe: How to draw over a image and it be save? Pin
Christian Graus20-Oct-06 0:49
protectorChristian Graus20-Oct-06 0:49 
GeneralRe: How to draw over a image and it be save? Pin
sathishtl00720-Oct-06 1:07
sathishtl00720-Oct-06 1:07 
GeneralRe: How to draw over a image and it be save? Pin
Christian Graus20-Oct-06 1:10
protectorChristian Graus20-Oct-06 1:10 
GeneralRe: How to draw over a image and it be save? Pin
sathishtl00720-Oct-06 1:22
sathishtl00720-Oct-06 1:22 
GeneralRe: How to draw over a image and it be save? Pin
Christian Graus20-Oct-06 3:35
protectorChristian Graus20-Oct-06 3:35 
QuestionStrong Naming Pin
Gareth H20-Oct-06 0:43
Gareth H20-Oct-06 0: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.