Solved

query to create labels from table records that contain multiple lines

Posted on 2013-01-23
2
275 Views
Last Modified: 2013-01-28
i have an access table called QB_ItemNonInventory
within the table is a column called SaleorPurchaseDesc
records within this column contain carriage returns

i want to create a query that i can then use for a mailmerge (or report) that will put each record on a separate label, including the carriage return.

i've tried parsing the record our based on the carriage return chr(13) but that doesn't work on these records.

attached is a sample in access 2007 format and any help is appreciated.

example of what i'm trying to accomplish

source record:  
6" Surface Unit Element SU201 660532 [cr]CMS #801025[cr]HD Supply #233000

result:
[line1]  6" Surface Unit Element SU201 660532
[line2]  CMS #801025
[line3]  HD Supply #233000
expertscarriagereturntest.accdb
0
Comment
Question by:intsup
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 38811839
<i've tried parsing the record our based on the carriage return chr(13) but that doesn't work on these records.>

try parsing your records with chr(13) & chr(10)


run the codes in module1
expertscarriagereturntest.accdb
0
 

Author Comment

by:intsup
ID: 38827780
will have to revisit this later but thanks for the input..
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now