Possible to program different events for option group updates?

HGCanada

Registered User.
Local time
Today, 07:59
Joined
Dec 30, 2016
Messages
82
SOLVED: Possible to program different events for option group updates?

Hello.

My team will be developing a number of databases in the coming months. They may be fairly simple. We have little coding experience, but we are looking things up as needed.

I have a question about option groups on forms. Is it possible to program After Update events, such that there is a different event depending on which option is selected?

For example:
- If option 1 is selected - display these fields
- If option 2 is selected - put a time stamp in this field
- If option 3 is selected - display a message

What would the code for this look like?

Thanks very much.
 
Last edited:
Yes, it would go in the after update event of the frame, not the individual options. I'd use Select/Case.
 
Thank you so much. I found an older thread with some code samples, and tried it. It worked. :)
 

Users who are viewing this thread

Back
Top Bottom