Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEED HELP WITH SQL STATEMENT

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
Can anyone please tell me why the following statement will not work. I'm using a access 2000 database.

UPDATE BASSPERS
SET GENDER=(SELECT GENDER FROM BASSPERS1
WHERE EMPNO=1066)

Get error "Operation must use an updateable query."

TNN, Tom
TNPAYROLL@AOL.COM


TOM
 
You need to use an operator that guarantees that only one record will be returned -- even though you specify the employee number, and YOU know it will only return a single record, the database engine does not.

use MAX(Gender), or something like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top