Hi Guyz!
I have this code as my filter
and have this in my textbox search
this allows me to filter data base on cbofield then textsearch..
but how can i make another filter like cbofield AND cbofield2 so i can filter contact and address at once.
I have this code as my filter
Code:
LPARAMETERS tcFieldName, tcSearchText
tcSearchText = ALLTRIM(UPPER(tcSearchText))
&& use macro expansion to implement search filter
SET FILTER TO "&tcSearchText" $ UPPER(&tcFieldName)
GO TOP
thisform.Refresh()
and have this in my textbox search
Code:
LOCAL cField, ctext, nItem
** get the selected field item#
** .aflds is created method
** .setfilter is created method
nItem = thisform.cboField.ListIndex
IF EMPTY(thisform.aflds[nItem,2]) then
cfield = thisform.aflds[nItem,1]
ELSE
cfield = thisform.aflds[nItem,2]
ENDIF
** get value to search for
ctext = thisform.txtsearchText.Value
** call the filter routine (method)
thisform.setfilter(cField, cText)
this allows me to filter data base on cbofield then textsearch..
but how can i make another filter like cbofield AND cbofield2 so i can filter contact and address at once.