473,409 Members | 2,034 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,409 software developers and data experts.

Change option group inherent values

Hello,

I have a form with an option group in order to classify some parameters. I have created a simple debug example in order to understand all the information https://www.dropbox.com/s/sh162n5sbm...oup.accdb?dl=0

The option group has three options (Excellent, good or spoilt). Access creates inherent values (1, 2 and 3) to save the selection information in the table as it can be seen in the following image:
https://www.dropbox.com/s/t2nl9uib6p...Group.png?dl=0
Note that the values cannot be changed to strings

When creating the excel, the following results are obtained:
https://www.dropbox.com/s/3s502hffht...lInfo.png?dl=0

Well, for the users, the information (1, 2 or 3) is not enough because they do not know what is the correspondence.

I have thought in applying a replace all VBA line code to substitute the values, but this is not a good approach.

Could you please help me with some ideas?

Thank you!!!!
Sep 12 '17 #1

✓ answered by Seth Schrock

Are you saying that you have 12 different fields, each of which can have the values of Excellent, good or spoilt (1,2 or 3)? If so, then you would just add the new table 12 times to the query editor (it will give all but the first one an alias) joining each one to a different one of the 12 fields and then you would once again only display the description fields, but in this case the description field from each of the 12 fields. I would recommend providing an alias for each of the description fields to make the export easier to understand.

If that isn't what you are describing, then I'm lost.

5 1734
Seth Schrock
2,965 Expert 2GB
Probably the easiest would be to create a table with two fields: an ID field and a description field that allows you to link the 1,2, and 3 to the proper description. You can then create a query that joins the table that you are currently working on to this new table using the ID field and the field that your option group is linked to as the join fields. Then display the description field instead of the number field. You can then export this query to Excel.
Sep 12 '17 #2
Hello Seth Schrock,

I will implement your solution in order to solve my problem.
Thank you!
Sep 13 '17 #3
Hello again Seth Schrock,

I think your solution only works if only one field is being converted. Am I right or am I missing something?
In my case, I have a list of 12 fields associated to the option group
Thank you
Sep 13 '17 #4
Seth Schrock
2,965 Expert 2GB
Are you saying that you have 12 different fields, each of which can have the values of Excellent, good or spoilt (1,2 or 3)? If so, then you would just add the new table 12 times to the query editor (it will give all but the first one an alias) joining each one to a different one of the 12 fields and then you would once again only display the description fields, but in this case the description field from each of the 12 fields. I would recommend providing an alias for each of the description fields to make the export easier to understand.

If that isn't what you are describing, then I'm lost.
Sep 13 '17 #5
@Seth Schrock

It is exactly as you stated, 12 different fields each of which can have the values of Excellent, good or spoilt (1,2 or 3).
With the 12 new tables added to the query, I was able to finally finish this task.
Thank you!!!!
Sep 13 '17 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Corrine | last post by:
Is there a way to cancel a change in an option group? The option group still changes to the option clicked on when clicking on the NO button with the following code in the BeforeUpdate event of the...
11
by: MLH | last post by:
Why is that? If I choose the tiny check boxes which are hard to hit with a mouse, it works fine. But option buttions, shich can be sized big enough for people with limited sight and dexterity...
5
by: tsnyder | last post by:
I need to have an option button that allows editing to a field only when it is checked.
1
by: Moe | last post by:
Hi, this my first post to this group. I am trying to add a option group of ture/false and all. This is on a form, that the results are displayed in a subform. When the user select a record from...
3
by: El | last post by:
I can get a total count for a whole option group field, but I need to be able to count each individual selection in an option group on a report. For example if I had a yes or no option...I would...
5
by: Student1000 | last post by:
Help me out please... Ok, i have been trying to do this for months….I kinda gave up on it but am back at it again. I created a form for a table (Bills). In the form, I have three option buttons...
11
tuxalot
by: tuxalot | last post by:
Another quick question for ya... Here's my button code, and I want to see if I can do something different so I don't have to repeat the same code for each of my 14 buttons in my option group: ...
1
by: wayne smith | last post by:
Hi, I am building a inventory system using ms access. Each inventory id can be from different regions. In one form, users enter the inventory id and if there is more than one region, another form...
3
by: DanicaDear | last post by:
I am using a set of options groups with some code that puts the text (rather than the typical 1,2,3, etc) into the table. I got the directions from this post:...
4
by: antoniosilv | last post by:
Hello, I have a form with an option group aka Radio buttons: Option A/B/C, which will populate fields Alpha, Bheta and Charlie (check image). ...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.