PC Review


Reply
Thread Tools Rate Thread

Reporting - Combo Box

 
 
=?Utf-8?B?d2FsNTA=?=
Guest
Posts: n/a
 
      7th Feb 2007
This has got to be easy but I'm stumped.
I have a several combo boxes in a subform to select "Yes", "No" or "N/A"
(from a table). The form works fine. I want to report on the results of
each box. What I get on the report are the row values from the Table (1, 2,
or 3). How do I get the report to print Yes, No or N/A? Doing another query
to lookup the values seems silly. There must be another way.
Help is appreciated.
Thanks,
wal50
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      7th Feb 2007
On Wed, 7 Feb 2007 11:57:00 -0800, wal50
<(E-Mail Removed)> wrote:

> Doing another query
>to lookup the values seems silly.


Well... then all Access applications are silly. Basing Reports on
multitable queries is perfectly normal and routine. Queries are your
friends - get to know and love them!

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
 
=?Utf-8?B?d2FsNTA=?=
Guest
Posts: n/a
 
      8th Feb 2007
Thanks for your help. Another query it is.
It just seemed that since the values were in a table that Access was using
to convert 1, 2, 3 to Yes, No, and N/A, there would be some way (that I was
missing) that could re-convert the numbers back to literals. Now I know that
there is a way and it's name is Query.
Thanks again for your (not silly) help.
wal50

"John W. Vinson" wrote:

> On Wed, 7 Feb 2007 11:57:00 -0800, wal50
> <(E-Mail Removed)> wrote:
>
> > Doing another query
> >to lookup the values seems silly.

>
> Well... then all Access applications are silly. Basing Reports on
> multitable queries is perfectly normal and routine. Queries are your
> friends - get to know and love them!
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
=?Utf-8?B?d2FsNTA=?=
Guest
Posts: n/a
 
      8th Feb 2007
But there is another question about the required Query.
The query I have matches general test information (class, etc) against the
answers. This query is the source that produces the report. The report that
I want to show Yes, No or N/A as the answers but now shows 1, 2, 3.
Each answer is a field, and there are ~40 questions/answers each test (same
all the time).
My question is about the query to convert the numbers to literal value.
Matching each answer to the table (40 times) doesn't work.
Is there a way to use current query (or another one)?
I tried creating a new field in a new query: Answer1Literal:
IIf([Answer1]="1", "Yes", Iif([Answer1]="2", "No", IIF([Answer1]="3",
"N/A"))). I was going to do that for each answer and use the result on the
report. Didn't work.

Any suggestions would be appreciated.
wal50

"wal50" wrote:

> Thanks for your help. Another query it is.
> It just seemed that since the values were in a table that Access was using
> to convert 1, 2, 3 to Yes, No, and N/A, there would be some way (that I was
> missing) that could re-convert the numbers back to literals. Now I know that
> there is a way and it's name is Query.
> Thanks again for your (not silly) help.
> wal50
>
> "John W. Vinson" wrote:
>
> > On Wed, 7 Feb 2007 11:57:00 -0800, wal50
> > <(E-Mail Removed)> wrote:
> >
> > > Doing another query
> > >to lookup the values seems silly.

> >
> > Well... then all Access applications are silly. Basing Reports on
> > multitable queries is perfectly normal and routine. Queries are your
> > friends - get to know and love them!
> >
> > John W. Vinson [MVP]
> >

 
Reply With Quote
 
Rolls
Guest
Posts: n/a
 
      13th Feb 2007
Create a table with these records:

field1 Code
field 2 Description

1 - Yes
2 - No

You join the two tables on the key fields then substitute the description
field for the code in your select query result.

"wal50" <(E-Mail Removed)> wrote in message
news:4AE55DB3-69DA-4D55-9501-(E-Mail Removed)...
> But there is another question about the required Query.
> The query I have matches general test information (class, etc) against the
> answers. This query is the source that produces the report. The report
> that
> I want to show Yes, No or N/A as the answers but now shows 1, 2, 3.
> Each answer is a field, and there are ~40 questions/answers each test
> (same
> all the time).
> My question is about the query to convert the numbers to literal value.
> Matching each answer to the table (40 times) doesn't work.
> Is there a way to use current query (or another one)?
> I tried creating a new field in a new query: Answer1Literal:
> IIf([Answer1]="1", "Yes", Iif([Answer1]="2", "No", IIF([Answer1]="3",
> "N/A"))). I was going to do that for each answer and use the result on
> the
> report. Didn't work.
>
> Any suggestions would be appreciated.
> wal50
>
> "wal50" wrote:
>
>> Thanks for your help. Another query it is.
>> It just seemed that since the values were in a table that Access was
>> using
>> to convert 1, 2, 3 to Yes, No, and N/A, there would be some way (that I
>> was
>> missing) that could re-convert the numbers back to literals. Now I know
>> that
>> there is a way and it's name is Query.
>> Thanks again for your (not silly) help.
>> wal50
>>
>> "John W. Vinson" wrote:
>>
>> > On Wed, 7 Feb 2007 11:57:00 -0800, wal50
>> > <(E-Mail Removed)> wrote:
>> >
>> > > Doing another query
>> > >to lookup the values seems silly.
>> >
>> > Well... then all Access applications are silly. Basing Reports on
>> > multitable queries is perfectly normal and routine. Queries are your
>> > friends - get to know and love them!
>> >
>> > John W. Vinson [MVP]
>> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Reporting not Reporting Back Robb Windows Vista General Discussion 0 25th Aug 2009 02:54 AM
Cascading Combo Box - filling a text box instead of a Combo box =?Utf-8?B?U2N1ZGE=?= Microsoft Access Forms 5 25th Jun 2007 06:46 PM
Error Message: Windows cannot find 'box,box,box,box,box' =?Utf-8?B?Ym91Y2hhcmRwaWU=?= Windows XP Help 2 25th Jul 2005 08:47 PM
Create Protected Word template that uses combo box & combo box val =?Utf-8?B?Q2luZHk=?= Microsoft Word Document Management 1 1st Apr 2005 05:10 PM
Combo Box - Hide Combo Box w/Check Box =?Utf-8?B?UGF1bA==?= Microsoft Excel Programming 5 3rd Dec 2004 11:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:19 AM.