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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 .recordSou rce="table 1"
case 2
me.subformControlName.form .recordSou rce="table 2"
case 3
me.subformControlName.form .recordSou rce="table 3"
end select
case 1
me.subformControlName.form
case 2
me.subformControlName.form
case 3
me.subformControlName.form
end select
me.subformControlName.form
etc