Solved

query to create labels from table records that contain multiple lines

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

776 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