barcode 39

  • Hello ,

    I have a problem to display in access barcode for this string: 123456-01

    In excell it works fine, but in access appears an error.

    I think that problem is with "-" in string.

    Control source is: =("!" & [string] & "!")

    Could you give me a hint how to display this string without error?

    thx.

  • Rather than using =("!" & [string] & "!") for your control source, I would use =("*" & [string] & "*") as that is the normal start and stop delimiter - see Code 39 - Wikipedia. I'm surprised the expression you used in Excel actually works based on the ANSI standard.

    Wendell
    Colorful Colorado
    You can't see the view if you don't climb the mountain!

  • Yes both works fine in excell but not in access.... string 123456/01 is displayed in access okay, but 123456-01 NOT.

  • What version of Access (and of Excel) are you using? And have you tried using the * as the start and stop character per the standard?

    Wendell
    Colorful Colorado
    You can't see the view if you don't climb the mountain!

  • access 2007,excel 2007 , yes I have tried it, but always the same.

  • but I think that problem is with special character minus "-" between numbers 123456-01... maybe I need to convert the string ...I dont know..

  • right now I found that other colums with minus is displayed corectly...it is strange... although both columns are set nvarchar.

  • ok done, I just created copy of the field I wanted to have for barcode, set font, and source as before.

    Fortunately everything works.

  • I suspect the "minus" sign you were using wasn't the standard one but a special character with a different ASCII code. Often it is the simple little things that give us the most grief. :w00t:

    Wendell
    Colorful Colorado
    You can't see the view if you don't climb the mountain!

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply