I am using Like operator in ms access query to get part of string.This query runs well in ms access query wizard but when I use this query to retrieve records in recordset,recordset is null.
Also I am using update query with like operator.Records are not updated and also no error message is shown.
Please help me to solve this..
Rachna0309
0
Light Poster
Recommended Answers
Jump to Postplease post your Query here
Jump to PostTry this.
Select TNAME,TADDRESS from VILLAGEMST where TADDRESS like &'(' & '[' VILNAME & ']'&')'
I could see some problem in your Qery in concatinating the brackets
Jump to PostThen post your complete code. I never worked with access DB. I work with MS SQL i thought syntax will b same..
Jump to PostVILNAME at line 5 does get any value when you execute in debug mode? and MainCon.Execute(usql)?
All 16 Replies
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
Pgmer
50
Master Poster
Featured Poster
Rachna0309
0
Light Poster
adam_k
239
Master Poster
Rachna0309
0
Light Poster
Rachna0309
0
Light Poster
adam_k
239
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.