473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Replace data in report

Hi,

I save radio button information as number in my database
1 = blue
2 = red
3 = yellow

In my report, I would like to display the colours instead of numbers.
How to do this?

thanks
chris
Jun 27 '08 #1
4 1216
Look at the Choose() function.

Chris R. wrote:
>Hi,

I save radio button information as number in my database
1 = blue
2 = red
3 = yellow

In my report, I would like to display the colours instead of numbers.
How to do this?

thanks
chris
--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200805/1

Jun 27 '08 #2
On 20 Mai, 17:35, "ruralguy via AccessMonster.com" <u12102@uwewrote:
Look at the Choose() function.
thanks. In German it is called wahl() but that was exactly I'm looking
for.

=wahl([fieldname];"red";"blue";"yellow")

greetz
chris
Jun 27 '08 #3
Glad I could help Chris!

Chris R. wrote:
>Look at the Choose() function.

thanks. In German it is called wahl() but that was exactly I'm looking
for.

=wahl([fieldname];"red";"blue";"yellow")

greetz
chris
--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

Jun 27 '08 #4
On Tue, 20 May 2008 09:28:47 -0700 (PDT), Chris R. wrote:
On 20 Mai, 17:35, "ruralguy via AccessMonster.com" <u12102@uwewrote:
>Look at the Choose() function.

thanks. In German it is called wahl() but that was exactly I'm looking
for.

=wahl([fieldname];"red";"blue";"yellow")

greetz
chris
Choose() is good!

Just for your general information .... in addition to using Choose(),
you could also have used IIf().

=IIF([OptionValue] = 1,"red",IIf([OptionValue]= 2,"blue","yellow"))

and if you have lots of options, Select Case in VBA code.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xah Lee | last post by:
suppose you want to do find & replace of string of all files in a directory. here's the code: ©# -*- coding: utf-8 -*- ©# Python © ©import os,sys © ©mydir= '/Users/t/web'
2
by: Carlos Eduardo Peralta | last post by:
Hello: Can i update a MySQL database with just copy the files MYI MYD and FRM in the right dir? I know this work. The question is how MySQL manage the user that are usig that database in that...
3
by: Wilfred Nilsen | last post by:
I am using the Mozilla XMLHttpRequest in multipart/x-mixed-replace mode such that the server can push data to the client. The problem that I encountered is that the onload event listener does...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
2
by: Sharon | last post by:
I've had an Access 2000 app running successfully for many months on both Windows XP and Windows 2000. Recently when my Windows 2000 users call a particular report, they get first a dialog...
3
by: MLH | last post by:
Most of you will recognize that I'm talking about Rick Fisher's product. I bought the version for Access 2.0 thirteen years ago and fell in love with it immediately. Most of you know, by virtue of...
0
by: Balakrsihna | last post by:
Hi All, Can anyone tell me how to replace an image in MS Word 2003 using c#.net. I am converting an html file to word doc and sending this as attachment using System.Web.Mail; the...
3
by: Diggler | last post by:
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop...
6
by: Ray | last post by:
Hi all, While I use the ReportDocument of vb.net to set filter to the data to the Crystal Report, it is successful for the first time while running the program. However, for the second time while...
5
by: arr1 | last post by:
Hello, I have created an matrix oracle report. In which i'm getting blank spaces for the fields where i dont have data. can i replace these with a zero. I tried the method provided on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.