473,395 Members | 1,891 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,395 software developers and data experts.

Option groups and reports

Hello all, i'm a new user in this group and was wandering if anyone could
assisst me with a problem:

I have a form with option groups within it outputig their results to a table
called tblTNAform, with contain a very, very large number of fields linked
to option groups.
My problem is that i wish to display these results as text, not numbers,
and i've run out of ideas. The results of the form may be stored as a number
in the tables but must display as text in the report.

P.S. My VBA is not so good, so any code must be shown in an idiot-freindly
way!
Nov 12 '05 #1
4 2426
On Sun, 18 Apr 2004 20:56:34 +0000 (UTC), Y Plas wrote:
Hello all, i'm a new user in this group and was wandering if anyone could
assisst me with a problem:

I have a form with option groups within it outputig their results to a table
called tblTNAform, with contain a very, very large number of fields linked
to option groups.
My problem is that i wish to display these results as text, not numbers,
and i've run out of ideas. The results of the form may be stored as a number
in the tables but must display as text in the report.

P.S. My VBA is not so good, so any code must be shown in an idiot-freindly
way!


As you have found, an Option Group value is a number.

To display the OptionGroup's value as text in a report, simply use an
unbound text control.
With just 3 options:

=IIf([OptionGroupField] = 1, "TextA",IIf([OptionGroupField] = 2,
"TextB","TextC"))

If the group has many more options you could use Switch() or Choose()
in an Access Control Source, or Select Case in VBA code to convert the
number value to text.

Look up Switch(), Choose(), and Select Case in VBA Help.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #2
On Sun, 18 Apr 2004 20:56:34 +0000 (UTC), Y Plas wrote:
Hello all, i'm a new user in this group and was wandering if anyone could
assisst me with a problem:

I have a form with option groups within it outputig their results to a table
called tblTNAform, with contain a very, very large number of fields linked
to option groups.
My problem is that i wish to display these results as text, not numbers,
and i've run out of ideas. The results of the form may be stored as a number
in the tables but must display as text in the report.

P.S. My VBA is not so good, so any code must be shown in an idiot-freindly
way!


As you have found, an Option Group value is a number.

To display the OptionGroup's value as text in a report, simply use an
unbound text control.
With just 3 options:

=IIf([OptionGroupField] = 1, "TextA",IIf([OptionGroupField] = 2,
"TextB","TextC"))

If the group has many more options you could use Switch() or Choose()
in an Access Control Source, or Select Case in VBA code to convert the
number value to text.

Look up Switch(), Choose(), and Select Case in VBA Help.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #3

"fredg" <fg******@example.invalid> wrote in message
news:sm****************************@40tude.net...
On Sun, 18 Apr 2004 20:56:34 +0000 (UTC), Y Plas wrote:
Hello all, i'm a new user in this group and was wandering if anyone could assisst me with a problem:

I have a form with option groups within it outputig their results to a table called tblTNAform, with contain a very, very large number of fields linked to option groups.
My problem is that i wish to display these results as text, not numbers, and i've run out of ideas. The results of the form may be stored as a number in the tables but must display as text in the report.

P.S. My VBA is not so good, so any code must be shown in an idiot-freindly way!


As you have found, an Option Group value is a number.

To display the OptionGroup's value as text in a report, simply use an
unbound text control.
With just 3 options:

=IIf([OptionGroupField] = 1, "TextA",IIf([OptionGroupField] = 2,
"TextB","TextC"))

If the group has many more options you could use Switch() or Choose()
in an Access Control Source, or Select Case in VBA code to convert the
number value to text.

Look up Switch(), Choose(), and Select Case in VBA Help.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.


Thanks Fred, worked a treat!
Nov 12 '05 #4

"fredg" <fg******@example.invalid> wrote in message
news:sm****************************@40tude.net...
On Sun, 18 Apr 2004 20:56:34 +0000 (UTC), Y Plas wrote:
Hello all, i'm a new user in this group and was wandering if anyone could assisst me with a problem:

I have a form with option groups within it outputig their results to a table called tblTNAform, with contain a very, very large number of fields linked to option groups.
My problem is that i wish to display these results as text, not numbers, and i've run out of ideas. The results of the form may be stored as a number in the tables but must display as text in the report.

P.S. My VBA is not so good, so any code must be shown in an idiot-freindly way!


As you have found, an Option Group value is a number.

To display the OptionGroup's value as text in a report, simply use an
unbound text control.
With just 3 options:

=IIf([OptionGroupField] = 1, "TextA",IIf([OptionGroupField] = 2,
"TextB","TextC"))

If the group has many more options you could use Switch() or Choose()
in an Access Control Source, or Select Case in VBA code to convert the
number value to text.

Look up Switch(), Choose(), and Select Case in VBA Help.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.


Thanks Fred, worked a treat!
Nov 12 '05 #5

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

Similar topics

2
by: Y Plas | last post by:
Hello all, i'm a new user in this group and was wandering if anyone could assisst me with a problem: I have a form with option groups within it outputig their results to a table called...
0
by: harpmi | last post by:
I have a database with user-level security enabled. I have users who I want to have read-only access to the data but want them to be able to create & modify thier own queries and reports. There is...
20
by: PC Datasheet | last post by:
How can the label for a checkbox and the labels for the options in an option group be addressed? When a checkbox gets the focus, Access draws a dotted box around the label. When an option group...
3
by: Paul Say | last post by:
I have a asp.net application that will need to create a document/report from data in a database. The user will fill out a form supplying various criteria for parameters. I would like the...
3
by: sunridge | last post by:
I have a database that has some Option Groups. In the Report it displays the option as a number (1, 2 or 3) but I want it to display the text instead. I was told to use the Choose function as...
10
by: nicenjguy | last post by:
This is my problem Table 1 is a list of reports that have the following columns Report ID, Report Name, Groups Allowed, Roles Allowed 1 Report 1 Clerk, Mgr ...
4
by: sara | last post by:
Hi - I can't seem to choose the keywords to find an answer to this query - or maybe it's not in the posts. I have a database where the Buyers enter their Orders and then Accounts Payable posts...
2
by: weston | last post by:
I have a form that has multiple option groups on it. When I created the form I copied the option groups and then changed the data source for them. But there now doesn't seem to be a caption for any...
6
by: ladybug76 | last post by:
Hello. Okay, so I have an Option Group with 6 reports on the Right hand side of a form. On the left, I have 4 command buttons. 1) Preview 2) Print 3) Save off 4) Email. I want the user to be...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.