WelshyWizard
IS-IT--Management
Hi all,
I'm trying to run a filter upon some information shown to the user on a windows form using the following code:
Each textbox has a default value of *. This is so that if one of the textboxes is not filled in, the filter will still show all records that match the textbox that is fillled in (leaving it blank would not do this). However, this plan backfires because all records with a <NULL> value are filtered out if there is a * in the textbox.
How can I adjust my code to include NULLS if a textbox is not filled in?
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....
I'm trying to run a filter upon some information shown to the user on a windows form using the following code:
Code:
DataView1.RowFilter = "Title Like '*" & TextBox3.Text & "*' OR Solution Like '*" & TextBox4.Text & "*'"
Each textbox has a default value of *. This is so that if one of the textboxes is not filled in, the filter will still show all records that match the textbox that is fillled in (leaving it blank would not do this). However, this plan backfires because all records with a <NULL> value are filtered out if there is a * in the textbox.
How can I adjust my code to include NULLS if a textbox is not filled in?
Cheers
Today is the tomorrow you worried about yesterday - and all is well.....