'...略
'...略
Dim Sum,Sum1 As Double '设置变量sum为双精度小数
'公务员(参公)
'厅局级正职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '厅局级正职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(3,2).Text = sum '设置表格内第4行第3个单元格填入文本
End If
'...略
'厅局级正职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '厅局级副职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(4,2).Text = sum '设置表格内第5行第3个单元格填入文本
End If
'...略
'县处级正职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '县处级正职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(5,2).Text = sum '设置表格内第6行第3个单元格填入文本
End If
'...略
'县处级副职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '县处级副职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(6,2).Text = sum '设置表格内第7行第3个单元格填入文本
End If
'...略
'乡科级正职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '乡科级正职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(7,2).Text = sum '设置表格内第8行第3个单元格填入文本
End If
'...略
'乡科级副职
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '乡科级副职'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(8,2).Text = sum '设置表格内第9行第3个单元格填入文本
End If
'...略
'股长
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '股长'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(9,2).Text = sum '设置表格内第10行第3个单元格填入文本
End If
'...略
'科员
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '科员'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(10,2).Text = sum '设置表格内第11行第3个单元格填入文本
End If
'...略
'办事员
Sum = Tables("调标表").Compute("Sum(人数)", "享受地方津贴补贴职务级别 = '办事员'")
Sum1 = Sum1 + Sum
if Sum > 0 Then
Rs2.Cells(11,2).Text = sum '设置表格内第12行第3个单元格填入文本
End If
'...略
'公务员(参公)小计
Rs2.Cells(2,2).text = Sum1
'...略