其实,不管多复杂的报表都可以用access做出来的。
报表可以有子报表,上面可以画线,可以贴图
报表除了线和图,最后就是数据及数据的组强布置了。
需要什么数据,用查询弄不出来,可以用VBA,ADO,可以用临时表
报表可以有多个子报表,数据可以进行排序和分组,怎样分页也可以设定。
仔细研究下报表,其实功能挺多的,只不过没有excel直观。
有些朋友可能觉得access表格难做,我这里有段代码,把它放在报表的vba里,可以自动作表格,只不过,更复杂的表格需要更复杂点的程序。你可以参考发挥下,做出适合自己的报表。
Private Sub主体_Print(Cancel As Integer, PrintCount As Integer)
Dim CtlDetail As Control
Dim intLineMargin As Integer
intLineMargin= 60
For Each CtlDetail In Me.Section(acDetail).Controls
With CtlDetail
If CtlDetail.Name<>"Memo" Then
Me.Line((.Left+.Width+ intLineMargin), 1)-(.Left+.Width+ _
intLineMargin, Me.Height)
End If
End With
Next
With Me
Me.Line(1, 1)-Step(.Width,.Height), 1, B
End With
Set CtlDetail= Nothing
End Sub