打印开始后,不能设置控件来源属性

zxzy1981 2003-09-29 11:04:41
Private Sub 组页眉2_Format(Cancel As Integer, FormatCount As Integer)
Dim blm1 As String
Dim len1 As Integer
blm1 = [alltagname]
len1 = Len(blm1)
MsgBox (len1)
Select Case len1
Case 14
[blm].ControlSource = Mid([alltagname], 1, 11)
Case 13
[blm].ControlSource = Mid([alltagname], 1, 10)
Case 12
[blm].ControlSource = Mid([alltagname], 1, 9)
Case 11
[blm].ControlSource = Mid([alltagname], 1, 8)
Case 10
[blm].ControlSource = Mid([alltagname], 1, 7)
Case Else
[blm].ControlSource = Null
End Select
End Sub

运行报告说:“打印开始后,不能设置控件来源属性。”
可我还没打印啊,只是预览报表 DoCmd.OpenReport nowreport, acPreview
这问题怎么解决???请大家指教!
...全文
38 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxzy1981 2003-09-29
  • 打赏
  • 举报
回复
up

6,108

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据库报表
社区管理员
  • 数据库报表社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧