Option Frame linked to Tab Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aharding
    New Member
    • Sep 2006
    • 22

    Option Frame linked to Tab Control

    Hello!

    I want to link my option frame (named AlgorithmOption ) of Yes/No Radial Buttons to control which tab is displayed in my Tab Control section.

    I think I put the code in the AfterUpdate Event Procedure of my OptionFrame .. but need some clarification.

    I am trying to link the Yes radial (which inputs in the table as a value of -1) to the tab 1 labeled Algorithm.
    The No radial (inputs as 0) should link to tab 2 labeled No Algorithm.

    So in the AfterUpdate Event procedure I put

    Private Sub AlgorithmOption _AfterUpdate()

    Me![AlgTabCtrl].[Algorithm] = Me![AlgorithmOption].[YES]

    Me![AlgTabCtrl].[No Algorithm] = Me![AlgorithmOption].[NO]

    End Sub

    For the pre-existing records....noth ing happens....and for creating a new record, when I select Yes/No i get this error message -

    Run-time Error '438'
    Object doesnt support this property or method

    I am not experienced with codes and really don't even know if I wrote it even close to correct. Please help!
Working...