Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Search Criteria
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Search Criteria
Divers
Thread ID:
00816469
Message ID:
00816469
Vues:
62
I am trying to search a table where the design number is equal to the value that I enter. The following code demonstrates this:
SET EXCLUSIVE OFF
SET DELETED ON
USE ("U:\Data\Modacad.dbf")

lcdesign = 'modacad.key3'+'$'+'thisform.pageframe1.page1.text1.value'

WITH thisform.pageframe1.page1.list1
 .RowSourcetype = 3
 .Rowsource = 'SELECT mainkey FROM modacad where &lcdesign'+;
              ' into cursor result'
ENDWITH
The problem I have is when I enter a design number for example JKT400 the results in my list box shows just:

JKT400

What I would expect to see is:

JKT400
JKT400B
JKT400C
JKT400NH

I thought the = condition meant beginning with and the == was exact match. Can anybody help me in determining how to change my search criteria so that I can get the results shown above.

Many Thanks in Advance
Neil Lewis
IT R&D Manager
Velmore Ltd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform