Solved

QR code on a report

Posted on 2014-09-25
5
196 Views
Last Modified: 2014-09-27
I have a report which contains 6 fields and I want to create a QR code on the report that has the information from all 6 fields.

How can I do this?

--Steve
0
Comment
Question by:SteveL13
[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
5 Comments
 
LVL 12

Expert Comment

by:danishani
ID: 40344960
Do you mean concatenated string?

If so you can do something like this in either your query or in an unbound textbox of the report:
[Text1] & [Text2] & [Text3] & [Text4] & [Text5] & [Text6]

Is that what you are after?
0
 

Author Comment

by:SteveL13
ID: 40344973
Actually, the text fields are "stacked" one on top of another.  I want the QR code to look the same.
0
 
LVL 12

Expert Comment

by:danishani
ID: 40344984
I am not sure I understand. So you have the text fields stacked on top of another in your report, and you want them to have in one text field?

Maybe an example would help to give you better assistance.
0
 
LVL 25

Expert Comment

by:Ron Malmstead
ID: 40345028
You can use this executable to generate the code image from command line, using SHELL() in MsAccess.., based on a concatenated string of fields ..with a seperator, for example a comma.

http://code.google.com/p/qrencode-win32/downloads/list


..for example..
qrcode.exe -o test.png -s 5 -l H "John,Doe,800-867-9305,jdoe@gmail.com,12/12/1971"

You will have to know how to code in MsAccess, to both generate the image from shell command, and also insert the image onto the report.
1
 
LVL 50

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 40345517
All you need is to concatenate with a separator you can replace with a line feed when reading:

strQRToSend = Join(Array([Text1], [Text2], [Text3], [Text4], [Text5], [Text6]), ";")
 
Then to read and display:

strQR = <string received/decoded>

strQRStacked = Join(Split(strQR, ";"), vbCrLf)

/gustav
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

735 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