P
Paulo
Hi, how can I use any logic to mount a search sql statement based on the
fields the user fills, example:
Name:
SomeCode:
Birth:
if name <> empty the sql will be: select fields from table where Name like
'%valueFromField%'
if somecode <> empty sql will be: select fields from table where (Name like
'%valueFromTextBox%') Or (SomeCode='valueFromTextBox')
how will I concatenating with the OR keyword?
Thanks a lot!
fields the user fills, example:
Name:
SomeCode:
Birth:
if name <> empty the sql will be: select fields from table where Name like
'%valueFromField%'
if somecode <> empty sql will be: select fields from table where (Name like
'%valueFromTextBox%') Or (SomeCode='valueFromTextBox')
how will I concatenating with the OR keyword?
Thanks a lot!