Option Groups

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to have the results of one option group affect the
results of another option group? I have two fields in the first option group
(debits and credits), if a user selects credits then the button on the second
option group would be selected causing other things to happen associated with
that button (kind of a default for only credits). Thanks!
 
Hi James,

Have an On Click event behind your option group, and when the user clicks on
Credit (or Debit, or whatever) use that to trigger a call to your other
function, like this:

select case me.optgrpDebitCredit
case Credit
call function here

case Debit
call function here

case else
msgbox "not sure how you got here"

end select

This assumes that Debit and Credit are defined as constants... they most
likely have numeric values behind your option group - remember to take this
into account.

Hope this helps.

Damian.
 
Damian, what do you mean by "call funtion here"?

Damian S said:
Hi James,

Have an On Click event behind your option group, and when the user clicks on
Credit (or Debit, or whatever) use that to trigger a call to your other
function, like this:

select case me.optgrpDebitCredit
case Credit
call function here

case Debit
call function here

case else
msgbox "not sure how you got here"

end select

This assumes that Debit and Credit are defined as constants... they most
likely have numeric values behind your option group - remember to take this
into account.

Hope this helps.

Damian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top