Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8927209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:10:02+00:00 2026-06-15T08:10:02+00:00

I have two tables and from that I am generating a query. I have

  • 0

I have two tables and from that I am generating a query. I have columns in my query with field type yes/no. These are basically columns to determine the race of a person. The user enters information in yes/no for various races. I want another calculated column in the query which checks for all other race columns and calculates values in it.

I have to check for a few conditions in for the values in columns
For example:

1) If Hispanic is chosen, the new column should say hispanic(no matter what other options are selected. This is like a trump card)

2) If more than one is selected, then new column entry should say “multi”

3) If none of the options are selected, it should say “unknown”

4) If exactly one of them is selected, then that race should be displayed

Can anyone help me with this? I am new to Access

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:10:03+00:00Added an answer on June 15, 2026 at 8:10 am

    I can’t code it for you but I can point you in the right direction. What you want to do is take all the tests you explained above and put them in a coded format :

    iif ( condition, value_if_true, value_if_false )
    

    Since you have a lot of possible outputs i’d use something like a Case Statement where you can test for all the possibilities.

    Follow this link if you need any info on how to code both type of statements (iif and case).

    Once you have tried something like this, you can comeback with a specific question if you encountered a problem in the process.

    Good luck with your database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an INSERT query that is pulling data from two tables and inserting
I have two tables from the same DB that when one field is updated,
I have two tables, one that has a foreign key from the other. I
I have two tables from which I'm trying to run a query to return
I have two tables, I need all rows from the first that don't appear
I have a city table that has two columns from_city to_city now lets assume
I have two different tables from which I need to pull data blogs which
I have this two tables from my program to manage stock: Articulos (items): id_articulo
i have two tables i am trying to get information from. login table -
I have two tables with list of urls fetched from different sources. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.