dim sql as string
Select case Frame0
case Frame0=1
sql="select * from 表 where 项目管辖='上会'"
me.子窗体控件名称.from.RecordSource=sql
case Frame0=2
sql="select * from 表 where 项目管辖='开滦'"
me.子窗体控件名称.from.RecordSource=sql
case Frame0=3
sql="select * from 表 where 项目管辖='唐钢'"
me.子窗体控件名称.from.RecordSource=sql
case Frame0=4
sql="select * from 表 where 项目管辖='新区'"
me.子窗体控件名称.from.RecordSource=sql
End Select
me.子窗体控件名称.from.Requery
Frame0=null