Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building a complex query
Message
 
À
26/01/2005 10:17:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00980679
Message ID:
00980775
Vues:
65
>It's lAND (LAND) and not 1AND. The first sign is a lower case L, not a 'one'.

Tore

Thanks very much

Colin


>
>>>Then you should change cWhere.
>>>
>>>IF .NOT. EMPTY(comname) && If this variable contains Company name
>>>   comname = ALLTRIM(comname)
>>>   cWhere = cWhere = cWhere + IIF(lAnd," AND ","")  + "globalnew.CompanyName LIKE %"+comname+"%"
>>>   lAnd   = .t.
>>>ENDIF
>>>
>>
>>I get the following message on this code
>>
>>variable 1AND not found - this is the 4th selection - the previous 3 have been blank
>>
>>IF .NOT. EMPTY(touncoun)
>> cWhere = cWhere + IIF(lAnd," AND ","") + "globalnew.town == '"+TRANSFORM(touncoun)+"'" && for Char Fields
>> lAnd = .t.
>>ENDIF
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform