safril
New member
- Local time
- Today, 14:12
- Joined
- Aug 7, 2021
- Messages
- 14
Hi, I'm newbie in Access and I need help for my document.
So I have some data:
Name1
Name2
Name3
Name4
Then I want to make a query like this:
If Name1 and Name2 then smart;
If Name3 then less smart;
Others are stupid.
What is the correct formula for the above case? I used the below formula but they give me error report.
Formula 1
Formula 2
Please help
So I have some data:
Name1
Name2
Name3
Name4
Then I want to make a query like this:
If Name1 and Name2 then smart;
If Name3 then less smart;
Others are stupid.
What is the correct formula for the above case? I used the below formula but they give me error report.
Formula 1
Code:
IIf([Your_Name]="Name1";"smart";IIf([Your_Name]="Name2";"smart";IIf([Your_Name]="Name3";"less smart";"stupid")))
Formula 2
Code:
IIf(Eval([Your_Name] In ("Name1","Name2"))),"smart";IIf([Your_Name]="Name3";"less smart";"stupid")
Please help