Tell me how you can change the record through the request like this: "male" to "male", "female" to "female" in one request. I tried to put the first value in the selection condition, and in the Update second line, but it does not work + you can only change 1 value in the query, but you need both male and female.
1 answer
UPDATE [ΡΠ°Π±Π»ΠΈΡΠ°] SET [ΠΏΠΎΠ»Π΅] = IIF([ΠΏΠΎΠ»Π΅]="ΠΌΡΠΆΡΠΊΠΎΠΉ","ΠΌΡΠΆΡΠΈΠ½Π°","ΠΆΠ΅Π½ΡΠΈΠ½Π°") WHERE [ΠΏΠΎΠ»Π΅] = "ΠΌΡΠΆΡΠΊΠΎΠΉ" OR [ΠΏΠΎΠ»Π΅] = "ΠΆΠ΅Π½ΡΠΊΠΈΠΉ" In the query builder:
- Add a table at the top
- Set request type - Update
- Fill from top to bottom at the bottom in one column:
- Field: field name
- Table Name: Table Name
- Update: IIf ([table]! [Field] = "male"; "male"; "female")
- Selection condition: "male"
- or: "female"
|