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 IamaSherpa 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 1

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
 
try this:

UPDATE BASSPERS1 INNER JOIN BASSPERS ON BASSPERS1.EMPNO = BASSPERS.EMPNO SET BASSPERS.GENDER = [BASSPERS1]![gender]
WHERE (((BASSPERS1.EMPNO)="1066"));


DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Thanks DougP,
That works just fine.
I was using syntax from ANSI SQL. Guess it's not applicable for access/SQL.
Thanks again
TNN, Tom
TNPAYROLL@AOL.COM

TOM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top