querying a query as a row source help

hollyh

Registered User.
Local time
Today, 01:39
Joined
Aug 23, 2011
Messages
28
Okay so I am trying to run a query where the row source on a table references another query of a table with the categories, yes, no, don't know

i would like to convert these to a numerical value in a new query, iif statements do not work. am i missing something obvious :o thanks.
 
Last edited:
I'm not sure how you are currently doing this, but if you use an Option Group these values would already be being stored as numbers.
 
Last edited:
Hi Sorry, I'm confused. this is not for a report but for a query..can you do it in the query?
 
Okay sorry I figured something out

The person who made the database (not me)

created a main table with a column SMOKING
linking to a query of another table
called YNDK with ID autonumber, then yes..no..don't know

I would like to convert these values to either 2 for yes or 1 for no or null/blank
 
text

yes
no
don't know

in a drop down box
 
So you have a table that contains the values; Yes, No, Don't Know, and presumably an ID for each, I'll guess, 1, 2, 3, and the corresponding field in your main table is storing Text :confused:
 
i am dyslexic

i must've typed something wrong it works. thanks
 
Last edited:

Users who are viewing this thread

Back
Top Bottom