Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Cursor
Message
From
28/10/2001 22:45:56
 
 
To
28/10/2001 22:41:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00574322
Message ID:
00574325
Views:
25
>I have asked this before but still need help. I have a table with records assigned to several different people and some of the records are not assigned. I want to show in a grid based on the log in a set of records that belong to the individual loged on plus all unassigned records. Note I only want to exclude records assigned to another user. Evereyone would see the unassigned. I know it will take two select statements but how can I set them up?
SELECT ;
  * ;
  FROM MyTable ;
  WHERE MyTable.iUserID = <i>LoggedInUsersID</i> ;
    OR EMPTY(MyTable.iUserID) ;
  INTO ...
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform