Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wildcard Views and SQL statements
Message
De
17/11/2000 17:44:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00443270
Message ID:
00443301
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform