transpose

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, sorry to be lazy!

Can anyone put their hands on a Function that transposes values in a
recordset into a variable i.e.

Last Name:
Davolio
Fuller
Leverling

str = Davolio, Fuller, Leverling, Peacock

Huge thanks if anyone can :-))
 
Hi, Simon.
Can anyone put their hands on a Function that transposes values in a
recordset into a variable

One may concatenate the values in a field by using the function on the
following Web page:

http://www.mvps.org/access/modules/mdl0008.htm

If you would like to have commas separating the values instead of the
semicolon, then change the following line:

lovConcat = lovConcat & lors(stFldToConcat) & "; "

to:

lovConcat = lovConcat & lors(stFldToConcat) & ", "


HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
That's really helpful, thanks. I ended up using FindFirst FindNext in a Do
While loop but would like to try your solution...
 
Back
Top