--
If DataTables("表设置").HasChanges Then
DataTables("表设置").Save
End If
Dim Builder As New ADOXBuilder
Builder.Open() \'打开ADOXBuilder
With Builder.Tables("测评表")
For Each C As Col In Tables("测评表").ColS
If C.Name <> "姓名" AndAlso C.Name <>"PG" Then
.DeleteColumn(C.Name)
End If
Next
For Each DL As String In DataTables("表设置").GetValues("大类","大类>\'\'","_SORTKEY")
For Each FL As String In DataTables("表设置").GetValues("分类","分类>\'\'","_SORTKEY")
.AddColumn(dl & "_" & fl,ADOXType.Boolean)
Next
Next
End With
Builder.Close() \'关闭ADOXBuilder
Forms("表设置").Close
Syscmd.Project.Open(ProjectFile)
Forms("主窗口").Open
Tables("测评表").AutoSizeCols