Create data in a field with multiple lines?

L

Larry Hodges

Hi all,

Running A2k

I have to export data from Access to QuickBooks. Part of that is the
addresses for customers. The problem is, QuickBooks views the address field
as one piece of data, like a mailing label.

So, in Access, I've got the following in separate fields:

Address1
Address2
CityStateZip

Obviously, I can put these together in a query with:
ComboAddress:[Address1]&" "&[Address2]&" "&[CityStateZip]

But, can I put the above together in such a way as to move the Address2 to
the next line, and CityStateZip to the line below that within one field? I
can create a Memo field, run an append query and add those fields as one set
of data. Then export that Memo field.

Thanks in advance for the help.
 
R

Rick Brandt

Larry said:
Hi all,

Running A2k

I have to export data from Access to QuickBooks. Part of that is the
addresses for customers. The problem is, QuickBooks views the
address field as one piece of data, like a mailing label.

So, in Access, I've got the following in separate fields:

Address1
Address2
CityStateZip

Obviously, I can put these together in a query with:
ComboAddress:[Address1]&" "&[Address2]&" "&[CityStateZip]

But, can I put the above together in such a way as to move the
Address2 to the next line, and CityStateZip to the line below that
within one field? I can create a Memo field, run an append query and
add those fields as one set of data. Then export that Memo field.

ComboAddress: [Address1] & Char(13) & Chr(10) & [Address2] & Char(13) &
Chr(10) & [CityStateZip]

And just export the query with the above. No need to make a redundant table
with a Memo field.
 
L

Larry Hodges

Rick said:
Larry said:
Hi all,

Running A2k

I have to export data from Access to QuickBooks. Part of that is the
addresses for customers. The problem is, QuickBooks views the
address field as one piece of data, like a mailing label.

So, in Access, I've got the following in separate fields:

Address1
Address2
CityStateZip

Obviously, I can put these together in a query with:
ComboAddress:[Address1]&" "&[Address2]&" "&[CityStateZip]

But, can I put the above together in such a way as to move the
Address2 to the next line, and CityStateZip to the line below that
within one field? I can create a Memo field, run an append query and
add those fields as one set of data. Then export that Memo field.

ComboAddress: [Address1] & Char(13) & Chr(10) & [Address2] & Char(13)
& Chr(10) & [CityStateZip]

And just export the query with the above. No need to make a
redundant table with a Memo field.

Worked great. Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top