|
-
Oct 5th, 2002, 11:04 AM
#1
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|