简体   繁体   中英

Code 128 Barcode in VBA for Access not working properly

I copied the code from this thread into my access db: Generating Code 128 Barcodes using Excel VBA

The function runs properly and returns a modified string (for the following, I will use the string "standard284762", my databases unique ID format as example).

I downloaded this font: https://dl.dafont.com/dl/?f=code_128

When I execute the function, it converts the string into this:

ÑstandardÌ<O^ÈÓ

代码

And it shows up like this on the Report:

在此处输入图像描述

I am using the Office 365 Version of Access. My module is named Code128str and my class module is named Class1

Any ideas what causes the weird output? Could anyone confirm that the code works fine and the Problem is somewhere else?

Use the font from this page: http://grandzebu.net/informatique/codbar-en/code128.htm

The font has to "pair" with the code.

Font download: http://grandzebu.net/informatique/codbar/code128.ttf

I saw the same problem before I installed that version of the font.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM