Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not in statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00882687
Message ID:
00882866
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
>
>SELECT cn_name, cn_port, cn_printer FROM lcontrol ;
>  WHERE !EMPTY(lcontrol.cn_name) .and. lcontrol.cn_name IN ;
>  (SELECT ctrlname FROM ctrlset WHERE ctrlset.printform = .T.);
>  INTO TABLE (hdir+"tTEMPLCONTROL.DBF")
>


Tracy,

I'm not convinced this will solve your problem, but as a matter of good practice I always surround the condition that contains a ! operator with parenthesis (i.e. WHERE (! EMPTY(lControl.cn_name)) ). The reason I do this is because I explicitly don't want the expression evaluated incorrectly if there are multiple conditions joined with AND/OR (i.e. the ! reversing both conditions instead of just the first).

Hope that made sense. :)

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Reply
Map
View

Click here to load this message in the networking platform