Solved

query to create labels from table records that contain multiple lines

Posted on 2013-01-23
2
322 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
[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 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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…
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

726 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