G
Guest
vb windows .net 200
crystal reports
Record selection formula works fine for currency string result, good for operators =/>= and so on, as follows
vb for
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clic
Dim SelectFormula As Strin
Dim myCrystalReportViewer = CrystalReportViewer
SelectFormula = "{CLIN_FUND.FUND_AMT} > " & TextBox1().Tex
CrystalReportViewer1.SelectionFormula = SelectFormul
......et
crystal select formula ..
{CLIN_FUND.FUND_AMT} > 500.00
=========
Now, I'm using a string for a description, and as long as it equals what's in the textbox (= or LIKE), it's fine. But I need to use a wildcard to pull in all results that would contain what the user types in the textbox and it's not working
vb for
SelectFormula = "{LINE_ITEM.CLIN_DESC} LIKE '" & TextBox1().Text & "'
CrystalReportViewer1.SelectionFormula = SelectFormul
crystal formul
{LINE_ITEM.CLIN_DESC} LIKE "%%"
I tried inserting a wildcard % in the vb statement, but no luck
How do I pull in all results that include the user's input in the textbox, please
Many thanks
-
crystal reports
Record selection formula works fine for currency string result, good for operators =/>= and so on, as follows
vb for
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clic
Dim SelectFormula As Strin
Dim myCrystalReportViewer = CrystalReportViewer
SelectFormula = "{CLIN_FUND.FUND_AMT} > " & TextBox1().Tex
CrystalReportViewer1.SelectionFormula = SelectFormul
......et
crystal select formula ..
{CLIN_FUND.FUND_AMT} > 500.00
=========
Now, I'm using a string for a description, and as long as it equals what's in the textbox (= or LIKE), it's fine. But I need to use a wildcard to pull in all results that would contain what the user types in the textbox and it's not working
vb for
SelectFormula = "{LINE_ITEM.CLIN_DESC} LIKE '" & TextBox1().Text & "'
CrystalReportViewer1.SelectionFormula = SelectFormul
crystal formul
{LINE_ITEM.CLIN_DESC} LIKE "%%"
I tried inserting a wildcard % in the vb statement, but no luck
How do I pull in all results that include the user's input in the textbox, please
Many thanks
-