For Each dc As DataCol In DataTables("表A").DataCols If dc.DefaultValue = "" Then dc.DefaultValue = iif(dc.Caption>"", dc.Caption, dc.Name) End If dc.Caption = dc.Name Next
DataTables("表A").BuildHeader
标题转名称
For Each dc As DataCol In DataTables("表A").DataCols If dc.DefaultValue <> "" Then dc.Caption = dc.DefaultValue End If Next