New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share
JEDMED

Native generator is stripping off the needed space at the end of barcode (check character)

I created an Access database to print labels using the Access Native Datamatrix Generator. The module is stripping off the check character when it is a space. I corrected most issues using the .Text to capture the actual text as scanned but that does not seem to work with the generator.

Operating System: Win 10 pro

Application: Access

11-16-16     952 day(s) ago    

  Report Abuse

 

Ben

Best Answer

What code is calculating the MOD43? We do not have this code in our Data Matrix.

If you are using custom code or code that you have created, you might have to run a check on the check digit. If the check digit is a space replace it with ~d032 so that it is added to your data before it is encoded in the barcode.

Posted 951 day(s) ago

()
()
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (5)

JEDMED
That worked!!!!!!!! Thanks.

To answer your question, yes we wrote a simple code to calculate the Mod43 that does a table lookup to get the corresponding character.

To test your solution I turned on Apply Tilde and temporarily added the ~d032 in the table at the back end of the barcode and it created the Data Matrix barcode correctly (with space as a check character). I will add a simple If Then, looking for a space and substitute the space with the ~d032 (or strip the space off and add ~d032).

Thanks again.

Posted 951 day(s) ago

()
()
   Report Abuse

JEDMED
Ben,

Thanks for your response. To explain some more, In my program I have a table with the barcode values. I have a report with the barcode on it (a text box assigned the name txtIDAutomationBC1, it has a control source that is the field name "ItemNumBC" from the table). When I print I call the barcode module as explained in the IDAutomation documentation with a check to see if the textbox is full or not:

If Len(txtIDAutomationBC1) > 0 Then
result = IDAutomation_NatG_DataMatrix(txtIDAutomationBC1, Me)
Else
result = ""
Exit Sub
End If

If I msgbox txtIDAutomationBC1 before it calls the module I get the barcode with the space. Note the space is only a space if the Mod 43 check character value equals a space (rare but can happen) so it is not always a space. It seems to be inside of the module that the space is being stripped off. I'm familiar with the Apply Tilde but I'm not sure where I would add your ~d032 to the field and if this would occur for all or would I need a check to see if it is a space and if so add the ~d032 to it before calling the module.

Posted 951 day(s) ago

()
()
   Report Abuse

Ben
The Native Generator for Access can encode spaces. However, the issue is most likely related to the field design since space is the last character. You may have to modify the field settings or encode a "~d032" where you need the space to appear (at the end of the data). When encoding ~d###, you must also enable ApplyTilde/ProcessTilde.

Posted 952 day(s) ago

()
()
   Report Abuse

JEDMED
Sorry about the confusion. It is the HIBC format (Health Industry) which uses the DataMatrix Barcode with their own designations. M633 is the labeler code, K907006 is the part number, the next number 7 designates unit of measure id and the space is a a Mod43 check character.

The barcode information is: "+M633K9070067 " (without quotes, quotes help see the space at the end)
The human readable text below the barcode adds asterisks: *+M633K9070067 *

Posted 952 day(s) ago

()
()
   Report Abuse

Ben
Attach the barcode and the data that you are using to this chat or to our support@idautomation.com contact. What barcode type are you creating? Data Matrix does not include a check character.

Posted 952 day(s) ago

()
()
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook