问题描述
当我尝试在 Access 报告上显示条形码时,我遇到了 Access 问题。我使用 Report.Page 事件来创建条码,如下所示:
Option Compare Database
Dim barcode As Control
Private Sub Report_Load()
Set barcode = Me.Tekst15
Debug.Print ("Geladen report: " + Trim([teldetail_tellijst] & "-" & [teldetail_nummer]))
End Sub
Private Sub Report_page()
Debug.Print ("Print preview starten voor report: " + Trim([teldetail_tellijst] & "-" & [teldetail_nummer]) + "!")
Debug.Print ("Loaded report: " + Me.Tekst0)
Debug.Print ("Barcode to print: " + barcode)
Result = Barcode_128(Me.Tekst15,Me)
Me.Line (0,0)-(Me.ScaleWidth,Me.ScaleHeight),B
End Sub
但它使用下一条记录中的数据。 如下图所示:report with barcode 如果您扫描条形码,它将读取 10908-2 而不是预期的 10908-1
我尝试更改生成条码的事件,但随后条码不会显示。我还尝试在打印预览中更改记录的大小以适合它打印的 A6 页面,因为如果我在 1 A4 上加载 2 个报告,条形码将只显示一次(仍然包含下一条记录中的数据)。
如果您需要更多信息来回答问题,请告诉我,以便我提供信息。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)