Thank you so much for your replies.
I am trying my best to make sense of everything... hehe like I said I am very
new to this.
Basically, I am creating a database and thinking of how I would like to try
things, then trying to find code that makes it possible. I did buy a book,
but it doesn't seem specific enough. I may need an actual VB book.
I have another question if you don't mind.
I am trying out option groups so that I could show/hide subforms on my main
background dependant on which radio button is selected. I have three options
currently...
1. Sign In Log
2. Petition Entry
3. Subdivision Entry
Now, through trial and error, I found that if I just insert a radio button
(no option group), then I can use the AfterUpdate event of the button to use
the following code:
If Me.Active = True Then
Me.<NameOfForm>.Visible = True
Else
Me.<NameOfForm>.Visible = False
End If
Also, the same code goes into the On Curent event on the main form.
This works nicely at showing and hiding the form if the button is selected or
deselected, but it is only one choice.
So I tried creating an option group so that only one value is selected at any
given time. I noticed that the AfterUpdate event is not available.
So my question is this... Is it possible to create what I am going after? In
an option group, when choice 1 is selected, choice 2 and 3 are not visible.
Then when I choose 2, 1 is hidden. Then if I reselect choice 1, it reappears
and choice 2 disappears?
This is Access 2003, if that helps any.
I guess overall I am trying to use one background and a bunch of forms that
are actually stacked on each other, but only one is visible at a time.
If I missed anything, please let me know.
Thank you.
Tim Ferguson - 13 Mar 2007 22:37 GMT
In general it's better to post a new question in a new thread because
more people will read it.
Also: please could you quote relevant text from previous postings as I
(nor do most of us, I guess) don't keep copies of historic interchanges
available.
> So I tried creating an option group so that only one value is selected
> at any given time. I noticed that the AfterUpdate event is not
> available.
It's the AfterUpdate event of the option group, not the individual
buttons. Don't forget to hide the current form as well as unhiding the
one you do want.
> I guess overall I am trying to use one background and a bunch of forms
> that are actually stacked on each other, but only one is visible at a
> time.
Okay: I use a tab control for this because it's less amenable to being
messed up by the user, but it's your call.
Hope that helps
Tim F
Fyrebryte - 19 Mar 2007 12:33 GMT
Yes, it helps alot. Thank you for your replies. I did get the subforms to
work correctly. I will also take your suggestion to post new questions in a
new posting.
Thank you all very much.