pinkpanther6666
Board Regular
- Joined
- Feb 13, 2008
- Messages
- 194
- Office Version
- 365
- Platform
- Windows
Hi All,
Wondering if anyone could help me on this Access 2010 SQL problem I have.
My tables are as follows:-
Table name .......... Main
Field Name 1 .......... Name
Field Name 2 .......... Gender
Table Name ............ Player
Field Name 1 ............ PlayerName
field Name 2 ............ Gender
In the player table for some records the value is set to 1
What the sql code below is suppose to do is to get all the playername where the gender =1 and then sets the player gender to 1 in the main table
But its not working
UPDATE Main SET Gender = 1
WHERE Name IN
(SELECT PlayerName FROM Player WHERE Gender = 1)
Can Anyone help please
Many thanks in advance
Steve
Wondering if anyone could help me on this Access 2010 SQL problem I have.
My tables are as follows:-
Table name .......... Main
Field Name 1 .......... Name
Field Name 2 .......... Gender
Table Name ............ Player
Field Name 1 ............ PlayerName
field Name 2 ............ Gender
In the player table for some records the value is set to 1
What the sql code below is suppose to do is to get all the playername where the gender =1 and then sets the player gender to 1 in the main table
But its not working
UPDATE Main SET Gender = 1
WHERE Name IN
(SELECT PlayerName FROM Player WHERE Gender = 1)
Can Anyone help please
Many thanks in advance
Steve