HI all, I want to generate a query for MS Access.I have to build it using MSAccess wild char "*". my query statement is query="select * from "+table+" where "+colarr.elementAt(0)+" like '"+valarr.elementAt(0)+"*"+"' "; where all variables are decleared properly. here my problem is there is no syntax or runtime error but after firing the query I can not get the output as resultset is zero though data is present. Without wild char. it works fine. can anybody pls help me
When I use MSAccess and java, the wild card is '%'. try the same query using '%' and you should be fine Jamie
Jason Kilgrow
Ranch Hand
Joined: May 21, 2001
Posts: 47
posted
0
Originally posted by parag dharmadhikari: HI all, I want to generate a query for MS Access.I have to build it using MSAccess wild char "*". my query statement is query="select * from "+table+" where "+colarr.elementAt(0)+" like '"+valarr.elementAt(0)+"*"+"' "; where all variables are decleared properly. here my problem is there is no syntax or runtime error but after firing the query I can not get the output as resultset is zero though data is present. Without wild char. it works fine. can anybody pls help me
Try some sample queries in Access before you code them.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.