Andrea,
It sounds as if you do not have the Wizards installed - and I can see how
the instructions I provided would not make much sense without them!
However, it should not be too difficult to create your Option Group without
the wizards:
1. Drag an Option Group control onto your form and open its Properties
sheet. Click the tab labeled 'Data'. At this point, we are concerned only
with the first two properties listed under the 'Data' tab, Control Source
(Control Origin) and Default Value (Pattern Value), respectively:
Control Source (Control Origin): this is the name of a field in the
table or query which is the record source for your form. If you want to
record the choice you make in the Option Group in a field, then you should
insert the name of that field here.
Default Value (Pattern Value): Enter a 1 here
2. Now, you will need to select an Option Button from the toolbar and drop
it into the Option Group you have just created. The "dot" and an
associated label should appear within the Option Group box. Open the
Properties sheet for this button and click the 'Data' tab. The first
property shown, Option Value, should be 1 because this is the first option
placed within the group. Close the Properties sheet. Now, just modify the
label that is associated with this Option Button to say "Dollar".
Then, select and drag a second Option Button from the toolbar and drop it
into the Option Group. Open the Properties sheet for this button, click
the 'Data' tab and observe the first property listed. Option Value for this
button should be 2. Close the Properties sheet and then modify the label
associated with this Option Button to say "Real".
3. Last, right-click on the Option Group and insert the code provided
earlier.
See how this works, Andrea, and let us know.
--
Cheryl Fischer, MVP Microsoft Access
Law/Sys Associates, Houston, TX
Andrea Duran said:
Hi Cheryl!
Your explanation was clear and full of details, but the problem is that for the fisrt part:
"When you enter the Label Names, enter Dollar first and then
Real. Accept the Wizard's suggestion to make Dollar your default choice.
Accept the Wizard's suggestion to make the Option Values: Dollar = 1 and
Real = 2. Accept the remaining Wizard prompts/suggestions by clicking Next.
Then click Finish to save the control on your form"
I message comes up on screen telling me this "resource in not installed".
So as I don't have how to reinstall it by now, after clicking on Option
Group bottom on the tools bar, the message i've mentioned appeared, I
ignored it by closing and started filling forms by right clicking on
"properties".
1)FORM Label: Label Dollar
Name: Label Dollar
Label: Dollar
Visible: Yes
Show when: always
...
2)FORM Option Group: Dollar
Name: Dollar
Control Origin: ?? selected from the available tables or make an expression?
Pattern Value: 1
...
Visible: Yes
Show when: always
...
AfterUpdate:[Event Procedure] ...(your suggsested coding OK)
...
Then I've clicked on Option Group bottom again and did the same for REAL!?
By your explanation I understood that this assistent creates Dollar as
defaut option, and Real as a second option under the same option group. I
fell I did it wrong, but I didn't find a good way to follow your steps
without using the assistent.
As a result I have on my screen: a box on which is written Dollar over
another empty box, and the same for Real. Nothing related to thecoding
I've programmed appears on this empty box.
Could you still help me?!
Thanks anyway and regards,
Andrea.
NOTE: my ACCESS in not in English, so my translation may differ from the
original ACCESS on the explanation above!