I can't figure out how to do that. In Access 2007 I don't see a current
record option.
TIA
With your main form in design view, right click to select properties. On
the event tab, the first selection is On Current. click on the "..." which
will allow you to enter code that executes each time you move to a different
record. The ReviewAssessment number (from the table) should be on your main
form. The part I don't get is why you have a button to select the
reviewassessment number. But in any event, the on current event code to
select the subform to view should be somewhat like my previous examples:
If ReviewAssessment= 1 then 'or whatever value it has...
me!your1stsubformName.Form.Visible= true
me!your2ndsubformName.Form.Visible= false
else
me!your1stsubformName.Form.Visible= false
me!your2ndsubformName.Form.Visible= true
End if
Damon
>> It sounds like something in the record is determining the choice of
>> subforms, rather than the user. That is a different matter.
[quoted text clipped - 61 lines]
> record option.
> TIA
Papa Jonah - 19 May 2008 15:20 GMT
Thanks Damon.
The part I was missing was the oncurrent for the form rather than the radio
button frame.
The button is just the radio button on the main form so that through the
user's selection of the radio button, the appropriate subform shows up.
Thanks again.
Papa
> With your main form in design view, right click to select properties. On
> the event tab, the first selection is On Current. click on the "..." which
[quoted text clipped - 78 lines]
> > record option.
> > TIA