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
Solved

query to create labels from table records that contain multiple lines

Posted on 2013-01-23
2
308 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL Update query with connected table data 3 37
Access Query on CSV returning number not text 6 36
Trouble with <> 2 20
Question about formatting a report 11 17
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server views 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 Access…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

840 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