请教。如何把模糊查询改成精确查询
*——收集查询条件
SearchFilter=".T."
IF NOT EMPTY(ALLTRIM(THISFORM.txt商品编号.Value))
SearchFilter=SearchFilter + " AND '" + ALLTRIM(THISFORM.txt商品编号.Value) + "' $ 商品编号"
ENDIF
IF NOT EMPTY(THISFORM.txt商品名称.Value)
SearchFilter=SearchFilter + " AND '" + ALLTRIM(THISFORM.txt商品名称.Value) + "' $ 商品名称"
ENDIF
IF NOT EMPTY(ALLTRIM(THISFORM.txt进货车牌.Value))
SearchFilter=SearchFilter + " AND '" + ALLTRIM(THISFORM.txt进货车牌.Value) + "' $ 进货车牌"
ENDIF
IF NOT EMPTY(ALLTRIM(THISFORM.txt经手人.Value))
SearchFilter=SearchFilter + " AND '" + ALLTRIM(THISFORM.txt经手人.Value) + "' $ 经手人"
ENDIF
IF NOT EMPTY(ALLTRIM(THISFORM.txt接收人.Value))
SearchFilter=SearchFilter + " AND '" + ALLTRIM(THISFORM.txt接收人.Value) + "' $ 接收人"
ENDIF
IF NOT EMPTY(THISFORM.txt出货日期.Value)
nYear=YEAR(THISFORM.txt出货日期.Value)
nMonth=MONTH(THISFORM.txt出货日期.Value)
nDay=DAY(THISFORM.txt出货日期.Value)
sDate=ALLTRIM(STR(nYear))+"/"+ALLTRIM(STR(nMonth))+"/"+ALLTRIM(STR(nDay))
SearchFilter=SearchFilter + "AND TTOD(出货时间)={^"+sDate +"}"
ENDIF
*——设置过滤条件
SELECT OutView
SET FILTER TO
SET FILTER TO &SearchFilter
*——刷新表单
THISFORM.Refresh
要是改成精确匹配查询,应该怎么修改,我试过直接把$改成==后,什么查询结果都出不来。。。。