INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Barcode Formatting

Barcode Formatting

(OP)
Hi,

I have a barcode report that prints the following barcode in the following format.

(91) 10200169 (37) 1

It use the following control source:

=Code128("~212" & "91" & [Delivery Docket Temp.SpecNo] & "" & "(37)" & [Weight],1,True)

which is taken from a table called Delivery Docket Temp which takes 2 fields named SpecNo and Weight. The barcode works perfect with the exception of the weight field. When the value in the weight field is a single digit the barcode does not format the way I would like.

Example:

If the value entered into the weight field is a double or triple digit (e.g. 10 or any number greater than 10 the barcode prints the following:

(91) 10200169 (37) 10

which is perfect.

But when the value entered into the weight field is a single digit (e.g. 1 or any number from 1 to 9 ) the barcode prints the following:

(91) 10200169 (371

not what I want.

Is there a way to write the following below so the barcode
=Code128("~212" & "91" & [Delivery Docket Temp.SpecNo] & "" & "(37)" & [Weight],1,True)

prints the barcode in this format?

(91) XXXXXXXX (37) X

Any assistance would be greatly appreciated.




RE: Barcode Formatting

I don't understand how the () are rendered around the 91 when they aren't in the expression. Are you suggesting the final ) is not rendered when the Weight is a single digit?

Duane
Hook'D on Access
MS Access MVP

RE: Barcode Formatting

(OP)
Hi Duane,

Yes, this is correct and I was able to play around with the placement of "" and finally got to work

=Code128("~212" & "91" & [Delivery Docket Temp.SpecNo] & "" & "(37)" & " " & [Weight],1,True)

Thanks,

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close