dbTalk Databases Forums  

newbie question, conditional record in a report

comp.databases.ms-access comp.databases.ms-access


Discuss newbie question, conditional record in a report in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shichen1979@yahoo.com
 
Posts: n/a

Default newbie question, conditional record in a report - 01-21-2008 , 04:21 PM






I have built the table that has a field with records 1, 3, 5.. How
can I show them differently in the report? like 1= customer, 3
=distributor, 5 = owner ..


Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: newbie question, conditional record in a report - 01-21-2008 , 04:41 PM






shichen1979 (AT) yahoo (DOT) com wrote:
Quote:
I have built the table that has a field with records 1, 3, 5.. How
can I show them differently in the report? like 1= customer, 3
=distributor, 5 = owner ..

I'm not sure I understand your question. Is it to show a verbose
description of the code? It so, you can change the text box to a combo
box. Set the combobox row source to Value (under data tab in the
combo's property sheet) and enter something like
1;"Customer";3;"Distributor";5;"Owner"
and set the column count to 2 and bound column to 1 (your numberic values).

Happy Hawaii
http://www.youtube.com/watch?v=SXDzP9YMBCs



Reply With Quote
  #3  
Old   
shichen1979@yahoo.com
 
Posts: n/a

Default Re: newbie question, conditional record in a report - 01-23-2008 , 04:02 PM



On Jan 21, 4:41*pm, Salad <o... (AT) vinegar (DOT) com> wrote:
Quote:
shichen1... (AT) yahoo (DOT) com wrote:
I have built the table that has a field with records 1, 3, 5.. *How
can I show them differently in the report? *like 1= customer, 3
=distributor, 5 = owner ..

I'm not sure I understand your question. *Is it to show a verbose
description of the code? *It so, you can change the text box to a combo
box. *Set the combobox row source to Value (under data tab in the
combo's property sheet) and enter something like
* * * * 1;"Customer";3;"Distributor";5;"Owner"
and set the column count to 2 and bound column to 1 (your numberic values)..

Happy Hawaiihttp://www.youtube.com/watch?v=SXDzP9YMBCs
Thanks....


Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: newbie question, conditional record in a report - 01-23-2008 , 05:21 PM



shichen1979 (AT) yahoo (DOT) com wrote:
Quote:
On Jan 21, 4:41 pm, Salad <o... (AT) vinegar (DOT) com> wrote:

shichen1... (AT) yahoo (DOT) com wrote:

I have built the table that has a field with records 1, 3, 5.. How
can I show them differently in the report? like 1= customer, 3
=distributor, 5 = owner ..

I'm not sure I understand your question. Is it to show a verbose
description of the code? It so, you can change the text box to a combo
box. Set the combobox row source to Value (under data tab in the
combo's property sheet) and enter something like
1;"Customer";3;"Distributor";5;"Owner"
and set the column count to 2 and bound column to 1 (your numberic values).

Happy Hawaiihttp://www.youtube.com/watch?v=SXDzP9YMBCs


Thanks....
You might also want to consider a lookup table. Create 2 fields; Code
and CodeDescription. Then in your report recordsource (in the Data tab
for the report) add this table and link it to the field in the main
table (that has the number). Then drag the description field to your
report. Your report will look nicer than a combo box. You can do this
from your dataentry form as well.




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.