|
- strSQL = "SELECT * FROM tbl_Master WHERE ID=" & lngRecordNo
- if strname <> "" THEN
- strSQL = strSQL & " and name ='"& strname &"' "
- END IF
- if strlocation <> "" THEN
- strSQL = strSQL & " and location='"& strlocation &"'
- END IF
- if strregion <> "" THEN
- strSQL = strSQL & " and region='"& strregion &"'
- END IF
复制代码 |
|