Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Access Coding Question, Barcode Base 32 Compression

Posted on 2011-02-21
4
Medium Priority
?
659 Views
Last Modified: 2013-12-25
I am an intermediate MS Access 2007 user.  I have dusted off an old project that I was working on and have run into some trouble with the "Mid" function.  In the attached database I have an input box (txtinput) located in "frmPersonnalinformation" that decompresses a base 32 compression string into Social Security Number (SSN), and Electronic Identifier (EDI) using the "BtoB module" and it also formats several dates using the "DtoD module".  The same string also has the first name, last name, and middle initial that is uncompressed.  When I run the code (Mid) to parse out the text, nothing appears, and It should, based on the fact that I can get it to work in the query "qrypersonnalinformation".   This database's basic function, allows employees to use their current ID card to sign in for accountability utilizing an existing PDF417 barcode.  Their is more data in the string of text, however, I am working on just one part at a time. Any assistance you could provide will be greatly appreciated.  Any other recommendations you could see to streamline my process would also be greatly appreciated.
Database1.accdb
Example-Strings-1-.txt
0
Comment
Question by:Kinlene
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 34949540
Check this example (paste string and press add button)
Database1.accdb
0
 

Author Comment

by:Kinlene
ID: 34949906
Great!  You did more than you had to.  My partner and I have a few questions.  Obviously , "me" declares that the form is the location of the data got it.  Why was it working for the other complexed processes and not the simple ones?.  Also, you declared the variable Dim Db as Database and Dim rs As Recordset.  What did this do that made access look at the data differently?  I hope you understand, I really want to understand what it did.  "Give a man a fish, feed him for a day."  "Teach a man to fish, feed him for a lifetime."  Thanks!
0
 
LVL 40

Expert Comment

by:als315
ID: 34950148
In your example variables was not declared. Me.SSN means SSN field in current form. SSN means variable, which can be used later, but it was not used.
Sorry for Dim, it was beginning of other idea (write records directly to table and use your variables, but if you have form, it is not nessary). Delete these declarations.
0
 

Author Closing Comment

by:Kinlene
ID: 34951388
Thanks
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question