Results 1 to 2 of 2

Thread: seek or find method

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,943

    seek or find method

    i have a connection on MyMdb.mdb with table1 and table2
    each table have a filde named COPE
    is possible to use the seek method or find method (i dont know wat is the best) simultanious on the 2 table in filed COPE????

    or... seek first on table1 and after seek on table2...
    Last edited by luca90; May 30th, 2007 at 05:55 AM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: seek or find method

    If the two tables are linked in some way, why not join them in your recordset (or whatever it is you are using)?

    You can load the data like this:
    Code:
    SELECT table1.*, table2.*
    FROM table1
    INNER JOIN table2 ON table1.Cope = table2.Cope
    .and if you only want a specific value of Cope, specify that in a Where clause:
    Code:
    SELECT table1.*, table2.*
    FROM table1
    INNER JOIN table2 ON table1.Cope = table2.Cope
    WHERE table1.Cope = 3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width