Link to home
Start Free TrialLog in
Avatar of keschuster
keschuster

asked on

MS Access Form switiching several tables

I'm looking for some guidence/suggestions on this one.

I have 3 tables each in the exact same layout (don't ask why they are not in a single table)
I want to create a form that has 3 radio buttons - each representing one of the 3 tables.

I want to display a data grid of the associated table when the related button is selected.  Basically allowing me to jump back and forth between the two tables.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or create a form with a datasheet subform and just change the recordsource like this

       me.subformControlName.form.recordSource="table1"

etc
Avatar of keschuster
keschuster

ASKER

I'm with you.  The grid is actually a subform.  How do I reference that subform to change the recordsource?
select case frame0
       case 1
            me.subformControlName.form.recordSource="table1"
       case 2
            me.subformControlName.form.recordSource="table2"
       case 3
            me.subformControlName.form.recordSource="table3"

end select