|
-
Nov 2nd, 2000, 04:32 PM
#1
Thread Starter
Junior Member
I write this SQL quary :
PARAMETERS Parametr Text ( 255 );
SELECT tbl1.code, tbl1.Desc
FROM tbl1
WHERE tbl1.Desc Like "*" & [Parametr] & "*";
it works very well in Access. but when I pass the parameter with VB I got an empty recordset , can you help me with it ?
-
Nov 2nd, 2000, 05:28 PM
#2
Hyperactive Member
I'm not sure but you could try % instead of *
-
Nov 3rd, 2000, 05:58 PM
#3
Thread Starter
Junior Member
Thanks but it did not work.
-
Nov 4th, 2000, 02:00 AM
#4
Member
use like " & somevariable& "*'"
this will work i think
thanx and regards
sundar
-
Nov 5th, 2000, 03:38 AM
#5
Thread Starter
Junior Member
Sorry about my last message , its working now
here is the right way to do it (like Bigley told me to do , so thanks to him )
PARAMETERS Parametr Text ( 255 );
SELECT tblTreeDesc.TreeCodeDesc, tblTreeDesc.TreeDesc
FROM tblTreeDesc
WHERE (((tblTreeDesc.TreeDesc) Like ("%" & [Parametr] & "%")));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|