• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

query to create labels from table records that contain multiple lines

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
intsup
Asked:
intsup
1 Solution
 
Rey Obrero (Capricorn1)Commented:
<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
 
intsupAuthor Commented:
will have to revisit this later but thanks for the input..
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now