Solved

Query question

Posted on 2016-10-26
4
54 Views
Last Modified: 2016-10-26
Hi Experts,
I have a query question.  I have a table for Team,  the table only has one field and it's text field.  it stores "00", "PD", "IS", "SU" these four teams.  I would like to create a query for the drop down, but I need combine "00" and "PD" as one name call "DC", so the drop down only shows "DC", "IS" ,"SU".  I tried to used DC: IIf([TEAM]="00" or [TEAM]="PD"),"DC")  IS: IIf([Team]="IS","IS")  SU: IIF([Team]="SU","SU")   but it did not give me the list, what I did wrong?

Thanks
0
Comment
Question by:urjudo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 41860752
try this query as the rowsource of your dropdown list

select iif([Team] In("00","PD"),"DC",[Team]) From  NameofTable

or

select iif([Team]="00" Or [Team]="PD","DC",[Team]) From  NameofTable
0
 

Author Comment

by:urjudo
ID: 41860766
I tried in the query, it gave me this result

Expr1
DC
IS
DC
SU
shows DC twice instead once
0
 

Author Comment

by:urjudo
ID: 41860768
got it, I group it.

Thanks & sorry
0
 

Author Closing Comment

by:urjudo
ID: 41860769
Thanks!!!
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question