Click here to Skip to main content
15,914,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRef:I got error when exporting asp to pdf Pin
aswath0071-Aug-07 3:23
aswath0071-Aug-07 3:23 
QuestionDataGridView Pin
Assaf821-Aug-07 3:15
Assaf821-Aug-07 3:15 
AnswerRe: DataGridView Pin
Rupesh Kumar Swami1-Aug-07 3:32
Rupesh Kumar Swami1-Aug-07 3:32 
QuestionRe: DataGridView Pin
Assaf821-Aug-07 11:42
Assaf821-Aug-07 11:42 
QuestionStoring bengali data into a SQL server Pin
halder_rajib1-Aug-07 2:14
halder_rajib1-Aug-07 2:14 
AnswerRe: Storing bengali data into a SQL server Pin
Colin Angus Mackay1-Aug-07 8:41
Colin Angus Mackay1-Aug-07 8:41 
QuestionChanging taskbar properties. Pin
The ANZAC1-Aug-07 1:56
The ANZAC1-Aug-07 1:56 
Questionparsing user input to Create Filter SQL Pin
MartyK20071-Aug-07 1:55
MartyK20071-Aug-07 1:55 
Hi,
I am using a datagrid view to display table data via dataset.

additionally I have a number of text and combo boxes where the user can enter filter information

so for example the data grid has 2 columns a product and a price.
The product filter is a combo box and the the price filter is a textbox.

acceptable filters would be
for the product:
a selected product ( phillips screwdriver)
a wildcard entered directely into the combo ( *screwdriver* )
for the price:
> 50 And < 300
<= 20

What I am looking for is an easy parsing technique that would convert the user entry into something an SQL where clause (or even a dataset select ) would understand
ie
Where [Product] = "phillips screwdriver" and [Price] > 50 and [Price] < 300

does anyone have an example algorythim for this kind of thing so that I can build code (or indeed any code to do this would be greatfully received - I can always build an algorythim from it)


Thanks
Martin

life is a bowl of cherries
go on take a byte

AnswerRe: parsing user input to Create Filter SQL Pin
Craster1-Aug-07 2:44
Craster1-Aug-07 2:44 
GeneralRe: parsing user input to Create Filter SQL Pin
MartyK20071-Aug-07 3:02
MartyK20071-Aug-07 3:02 
Questionconvert an array to a string Pin
sixecho1-Aug-07 1:43
sixecho1-Aug-07 1:43 
AnswerRe: convert an array to a string Pin
_mubashir1-Aug-07 1:49
_mubashir1-Aug-07 1:49 
AnswerRe: convert an array to a string Pin
Tom Deketelaere1-Aug-07 1:54
professionalTom Deketelaere1-Aug-07 1:54 
AnswerRe: convert an array to a string Pin
Luc Pattyn1-Aug-07 2:54
sitebuilderLuc Pattyn1-Aug-07 2:54 
QuestionName of offending code Pin
Johan Hakkesteegt31-Jul-07 23:34
Johan Hakkesteegt31-Jul-07 23:34 
AnswerRe: Name of offending code Pin
Christian Graus31-Jul-07 23:54
protectorChristian Graus31-Jul-07 23:54 
GeneralRe: Name of offending code Pin
Johan Hakkesteegt1-Aug-07 20:02
Johan Hakkesteegt1-Aug-07 20:02 
AnswerRe: Name of offending code Pin
Steven J Jowett31-Jul-07 23:58
Steven J Jowett31-Jul-07 23:58 
GeneralRe: Name of offending code Pin
Johan Hakkesteegt1-Aug-07 20:00
Johan Hakkesteegt1-Aug-07 20:00 
AnswerRe: Name of offending code Pin
Luc Pattyn1-Aug-07 0:27
sitebuilderLuc Pattyn1-Aug-07 0:27 
GeneralRe: Name of offending code Pin
Johan Hakkesteegt1-Aug-07 19:59
Johan Hakkesteegt1-Aug-07 19:59 
QuestionError when display report in crystal report viewer Pin
Mekong River31-Jul-07 22:56
Mekong River31-Jul-07 22:56 
QuestionC# code to vb.net Pin
Ahmad Zaidi31-Jul-07 22:00
Ahmad Zaidi31-Jul-07 22:00 
AnswerRe: C# code to vb.net Pin
Christian Graus31-Jul-07 22:02
protectorChristian Graus31-Jul-07 22:02 
AnswerRe: C# code to vb.net Pin
eyes200731-Jul-07 22:10
eyes200731-Jul-07 22:10 

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.