I'm trying to do something that's probably very easy but I can't get it to work. I don't have a lot of CR experience which is probably my problem.
Right now my VB program prints to CR a list of items that match a certain Search Criteria. If there are no matches than a "NO RECORDS FOUND" message is assigned to a CR formula field called SEARCH.
I'm trying to store the search statement in another formula. My formulas look like this:
CrystalReport1.Formula(0) = "criteria= ' & strCriteria & "'"
If NoRec Then
CrystalReport1.Formulas(1) = "search= 'No records found'"
else
CrystalReport1.Formulas(1) = "search= '' "
End If
The problem I'm having is when there are no matches the Criteria is not printing. If does print when there are matches though.
Does anyone know why this it? Is is something I'm doing wrong? If you need more info let me know.
Bob R.
Right now my VB program prints to CR a list of items that match a certain Search Criteria. If there are no matches than a "NO RECORDS FOUND" message is assigned to a CR formula field called SEARCH.
I'm trying to store the search statement in another formula. My formulas look like this:
CrystalReport1.Formula(0) = "criteria= ' & strCriteria & "'"
If NoRec Then
CrystalReport1.Formulas(1) = "search= 'No records found'"
else
CrystalReport1.Formulas(1) = "search= '' "
End If
The problem I'm having is when there are no matches the Criteria is not printing. If does print when there are matches though.
Does anyone know why this it? Is is something I'm doing wrong? If you need more info let me know.
Bob R.