(VBA) Barcode Code 128 module Example Needed

Anonymous
2013-03-05T23:00:09+00:00

Hello, I have been wanting to add a (Code 128) barcode for a text box that populates a number on my form. I have been searching and searching for something that only uses VBA and nothing needs added in or installed on my PC.  I will have this on several PC's and dont want Add-ins ect. I have found CODE HERE that uses VBA but for Code39 which im not sure it will work I will have to see. I dont quite understand the code and how would I get it to work in my form not report. Say I have a txtBox1 with a number of "12345aj"  or a name and number like "soggycashew" and wanted it to display the barcode for that number how would I do it and how on my form?

Thanks!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2013-03-06T00:11:57+00:00

    Normally, as with Code39, a barcode is just a font displaying the characters.  The barcode reader is just an alternate keyboard entry device, such that when it scans the barcode the characters are input just like you would have typed it.

    Different barcodes are usually just different font renderings. 

    Barcode 128 uses a calculated check digit added to the actual characters.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-03-06T17:37:30+00:00

    Ok one last question... If i install a add-in and move the DB to another PC will the add-in not work anymore unless the user installs it on the other PC they are using. Thanks!

    I'm just trying to avoid install something on every PC I want it to move with the DB.....

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-03-06T16:16:08+00:00

    Fonts must be installed on any client computer that needs it.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-03-06T16:06:48+00:00

    is there a way I can include the font in the same directory or folder as the database and use vba to to use it like it would as if it were installed? Thanks!

    Was this answer helpful?

    0 comments No comments
  5. ScottGem 68,855 Reputation points Volunteer Moderator
    2013-03-06T13:07:19+00:00

    As Jack said, producing a barcode is usually as simple as formatting the control to use a barcode font. You don't need ANY code at all, but you do need to have the font installed for any machines that will need to display the barcode.

    Was this answer helpful?

    0 comments No comments