G
ges via AccessMonster.com
I have table with customer data as follow:
A-1 Express Delivery
20/7 McKinney
1 2 3 SouthWest ======>(1 space 2 space 3 space) SouthWest
Adriana's Insurance
I have a text box that user will type in the value for search. How do I use
the "LIKE" syntac in the WHERE clause?
Currently my string look like below:
WHERE (((tblAccounts.a_FileType)='Arden) AND "
((tblAccounts.a_Account)=" & """" & txtSearchAC & """" & ") "
OR ((tblAccounts.a_BillName) =" & """" & txtSearchAC & """" & ")
"
OR ((tblAccounts.a_BillName) LIKE " & Chr(34) & txtSearchAC & "%
" & Chr(34) & ")) "
ORDER BY tblAccounts.a_Account DESC , tblAccounts.a_BillName
DESC;"
When I try to search :
A-1 Express Delivery
20/7 McKinney
1 2 3 SouthWest ======>(1 space 2 space 3 space) SouthWest
Adriana's Insurance
It doesn't give me error, the record just doesn't show up (access doesn't
find it).
Anyone can help me? I greatly appreciate any input, THANK YOU!
Ges
A-1 Express Delivery
20/7 McKinney
1 2 3 SouthWest ======>(1 space 2 space 3 space) SouthWest
Adriana's Insurance
I have a text box that user will type in the value for search. How do I use
the "LIKE" syntac in the WHERE clause?
Currently my string look like below:
WHERE (((tblAccounts.a_FileType)='Arden) AND "
((tblAccounts.a_Account)=" & """" & txtSearchAC & """" & ") "
OR ((tblAccounts.a_BillName) =" & """" & txtSearchAC & """" & ")
"
OR ((tblAccounts.a_BillName) LIKE " & Chr(34) & txtSearchAC & "%
" & Chr(34) & ")) "
ORDER BY tblAccounts.a_Account DESC , tblAccounts.a_BillName
DESC;"
When I try to search :
A-1 Express Delivery
20/7 McKinney
1 2 3 SouthWest ======>(1 space 2 space 3 space) SouthWest
Adriana's Insurance
It doesn't give me error, the record just doesn't show up (access doesn't
find it).
Anyone can help me? I greatly appreciate any input, THANK YOU!
Ges