Consider putting all your data in two tables:
TblSection
SectionID
SectionName
TblMyData
MyDataID
SectionID
<<Fields for all your data>>
Next you need a query that includes both fields with the following criteria
for SectionID:
Forms!PFrmSelectSection!SectionID
You then need a form, FrmSectionData, based on the query.
Next to last you need a pop-up form named PFrmSelectSection with a combobox
named SectionID. The rowsource of the combobox needs to be the following
SQL:
Select SectionID, SectionName From TblSection OrderBy SectionName
The properties of the combobox need to be:
BoundColumn 1
Column Count 2
Column Width 0;2
In the AfterUpdate event of the combobox you need the following code:
Me.Visible = False
Lastly, you need the following code to open PFrmSelectSection:
DoCmd.OpenForm "PFrmSelectSection",,,,,acDialog
DoCmd.OpenForm "FrmSectionData"
Docmd.Close "PFrmSelectSection"
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)