Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building a complex query
Message
 
To
26/01/2005 10:17:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00980679
Message ID:
00980775
Views:
69
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform