Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wildcard Views and SQL statements
Message
From
17/11/2000 17:44:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00443270
Message ID:
00443301
Views:
15
>Ok sometimes that works and sometimes it doesn't.
>This works %Sal% but Sal% does not. the _ does not work right either.
>here is a copy of my code
>
>
>myconnection = SQLCONNECT('MyNorthTest','ldjackson','shakka')
>IF myconnection > -1
>
> lcstate = "SELECT COMPANYNAME,CONTACTNAME,CONTACTTITLE FROM CUSTOMERS WHERE CONTACTTITLE Like ?lctitle ORDER BY COMPANYNAME "
> SQLEXEC(myconnection,lcstate,'MYTEMP1')
> SQLDISCONNECT(myconnection)
> SELECT MYTEMP1
>ENDIF
>
>I am doing this in the BeforeOpenTables event in order to preview a report

I really don't know if this could be case but from the name it sounds to be an Access database. Access databases have problem with wildcard matches and version of MDAC, Jet engine effects it AFAIK. You might find it in MSDN knowledgebase.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform