S
sriram
table name: PROFIT
fields:
ID,FIRST NAME,LAST NAME,EMP,CONDITION
1.... AN............... YT ..............S ..........A
2.... NH................ZK...............D...........A
3.... GR ...............OR .............E ..........B
IF I INPUT [CONDITION]="A" AS THE CRITERIA.(IF I WANT ONLY THE "A" VALUES IN
THE CONDITION)
NORMALY THE RESULT WILL BE
ID,FIRST NAME,LAST NAME,EMP,CONDITION
1.... AN............... YT .............S .......A
2.... NH................ZK...............D...... A
IF I INPUT [CONDITION]="B" AS THE CRITERIA.(IF I WANT ONLY B VALUES IN THE
CONDITION)
NORMALY THE RESULT WILL BE
ID,FIRST NAME,LAST NAME,EMP,CONDITION
3.... GR ...............OR .............E .........B
"BUT MY OUTPUT SHOULD BE"
IF I INPUT [CONDITION]="A" AS THE CRITERIA.
ID EMP CONDITION
1... S......... A
2... E......... A
I NEED ONLY THE ABOVE 3 FIELDS IN THE RESULTING TABLE
IF I INPUT [CONDITION]="B" AS THE CRITERIA.
ID FIRST NAME LAST NAME CONDITION
3... GR .............OR................... B
I NEED ONLY THE ABOVE FOUR FIELDS IN THE RESULTING TABLE.IF THE USER INPUTS
"B"
PLEASE HELP ME IN WRITING A QUERY FOR THIS IN ACCESS 2007.
THANKING YOU
fields:
ID,FIRST NAME,LAST NAME,EMP,CONDITION
1.... AN............... YT ..............S ..........A
2.... NH................ZK...............D...........A
3.... GR ...............OR .............E ..........B
IF I INPUT [CONDITION]="A" AS THE CRITERIA.(IF I WANT ONLY THE "A" VALUES IN
THE CONDITION)
NORMALY THE RESULT WILL BE
ID,FIRST NAME,LAST NAME,EMP,CONDITION
1.... AN............... YT .............S .......A
2.... NH................ZK...............D...... A
IF I INPUT [CONDITION]="B" AS THE CRITERIA.(IF I WANT ONLY B VALUES IN THE
CONDITION)
NORMALY THE RESULT WILL BE
ID,FIRST NAME,LAST NAME,EMP,CONDITION
3.... GR ...............OR .............E .........B
"BUT MY OUTPUT SHOULD BE"
IF I INPUT [CONDITION]="A" AS THE CRITERIA.
ID EMP CONDITION
1... S......... A
2... E......... A
I NEED ONLY THE ABOVE 3 FIELDS IN THE RESULTING TABLE
IF I INPUT [CONDITION]="B" AS THE CRITERIA.
ID FIRST NAME LAST NAME CONDITION
3... GR .............OR................... B
I NEED ONLY THE ABOVE FOUR FIELDS IN THE RESULTING TABLE.IF THE USER INPUTS
"B"
PLEASE HELP ME IN WRITING A QUERY FOR THIS IN ACCESS 2007.
THANKING YOU