home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / VOL8N11.ZIP / SCAN < prev    next >
Text File  |  1989-05-05  |  1KB  |  27 lines

  1.  
  2. You can relate the customers and orders databases on the
  3. cust_id field with the following code:
  4.  
  5. Select 1                                && open work area
  6. Use customers                           && open parent
  7. Use orders Order order_id In 2          && open child in area 2
  8. Set Relation To order_id Into orders    && link them
  9. Set Skip To orders                      && set for multiples
  10. Go Top                                  && move record pointer
  11.  
  12.  
  13. You can relate the customer database to several different
  14. databases (children) on the cust_id field with the following
  15. code:
  16.  
  17. Select 1                                && open work area
  18. Use customers                           && open parent
  19. Use orders Order order_id IN 2          && open child1 in work area 2
  20. Use contacts Order cont_id IN 3         && open child2 in work area 3
  21. Use calls Order call_id IN 4            && open child3 in work area 4
  22. Set Relation To order_id Into orders, cont_id Into contacts,;
  23.     call_id Into calls                  && link to parent
  24. Go Top                                  && move record pointer
  25.  
  26.  
  27.