Results 1 to 6 of 6

Thread: Basic SQL statement

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Posts
    102

    Basic SQL statement

    I am trying to locate a single record from a table by using the statement



    ado.recordsource = SELECT FROM ClientDetails WHERE ClientID =temp



    Because ClientID is the primary key (and the variable temp contains the required ClientID number), I would expect the recordset to only return one record - except it doesn't. When searching through the result in debug, it seems to go through every record in the table.

    What Am I doing wrong?
    Last edited by darthy; Oct 5th, 2002 at 11:31 AM.

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