Combining multiple records into one memo field

  • Thread starter vander via AccessMonster.com
  • Start date
V

vander via AccessMonster.com

Hello,

What I want to do seems simple enough, but I can't seem to find a simple
answer. go figure.

I have a table that has records of different leinholders. I want to take the
leinholder names based off of certian criteria and combine them into one memo
field.

example:

Lienholder
Doe Jane
Doe John

to
Doe Jane, Doe John

This has nothing to do with database structure. I need to utilize as much
space on a report page as possible. I first though of using columns in the
detail section of the report, but the leinholder names can get qiute lengthy
and fields cannot grow left to right, only up and down and I can't leave off
any part of the name. If I combine all the names together in one memo field
and have it grow as needed, best utilizes as much space as possible on the
report

I looked at some of the posts that already exist on various versions on this
subject and cant seem to find a working solution. Does anyone have any ideas?
 
V

vander via AccessMonster.com

Hi John,

Ive pasted the code into a new module, then I pasted the function into a
query. Problem is when I try and save the query I get a "The SELECT statement
includes a reserved word or an argument name that is misspelled or missing,
or the punctuation is incorrect."
I have a table that has records of different leinholders. I want to take the
leinholder names based off of certian criteria and combine them into one memo
[quoted text clipped - 8 lines]
to
Doe Jane, Doe John

See http://www.mvps.org/access/modules/mdl0004.htm for VBA code to do this.
 
J

John W. Vinson

Hi John,

Ive pasted the code into a new module, then I pasted the function into a
query. Problem is when I try and save the query I get a "The SELECT statement
includes a reserved word or an argument name that is misspelled or missing,
or the punctuation is incorrect."

Then correct the error in the SELECT statement.

If you would like help doing so please copy and paste the SQL view to a
message here, so someone can see it to help you.
 
V

vander via AccessMonster.com

The problem is I dont see anything wrong with it. I copied exactly as it
shows in the example you pointed me to.
So obviously that Select statement you pointed me to is wrong.
 
J

John W. Vinson

The problem is I dont see anything wrong with it. I copied exactly as it
shows in the example you pointed me to.
So obviously that Select statement you pointed me to is wrong.

Sorry.

I'll try to help if you allow me to do so. I cannot see what you did, so I'm
unable to help. If there are no errors, and you adapted the code to the
tablenames and fieldnames of your database, then I have no idea what might be
wrong.
 

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