473,383 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

aggregating functions for text?

Hello,

are there any aggregating functions in Access that can concatenate (glue
together) text?
Sep 26 '08 #1
3 1482
On Fri, 26 Sep 2008 07:16:29 +0200, Piotr Sobolewski wrote:
Hello,

are there any aggregating functions in Access that can concatenate (glue
together) text?
Perhaps an example of what you want would have been helpful.

="This is a Text message." & " " & "This is an additional message."

Is that what you mean?
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Sep 26 '08 #2
"Piotr Sobolewski" <NI********@gazeta.plwrote in message
news:gb**********@inews.gazeta.pl...
>
are there any aggregating functions in Access that can concatenate
(glue together) text?
If you are trying to concatenate values from related records into a string
to use with the main record, use a function like this:
http://allenbrowne.com/func-concat.html

If you just want to stick together an unpredictable number of strings that
you want to pass in, use a functon that accepts a ParamArray, like this:
Function ConcatFields(strDelim As String, ParamArray varList()) As Variant
Dim strout As String
Dim i As Integer

For i = LBound(varList) To UBound(varList)
If Not IsNull(varList(i)) Then
strout = strout & varList(i) & strDelim
End If
Next
i = Len(strout) - Len(strDelim)
If i 0 Then
ConcatFields = Left(strout, i)
Else
ConcatFields = Null
End If
End Function

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Sep 26 '08 #3
Allen Browne wrote:
>are there any aggregating functions in Access that can concatenate
(glue together) text?

If you are trying to concatenate values from related records into a string
to use with the main record, use a function like this:
(...)
Thanks a lot!
Sep 26 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Roger Leigh | last post by:
The C++ book I have to hand (Liberty and Horvath, Teach yourself C++ for Linux in 21 Days--I know there are better) states that "static member functions cannot access any non-static member...
5
by: James Foreman | last post by:
I've got a whole load of data that I've been logging to record different search terms used on a website. This all resides in a varchar(50) column. Contents will be something like: toaster...
11
by: Bruce A. Julseth | last post by:
I have: If (Microsoft.VisualBasic.Left(TextBox1.Text, 1) = "$") Then TextBox1.Text = Microsoft.VisualBasic.Right(TextBox1.Text, TextBox1.Text.Length - 1) End If Adding: Imports...
8
by: Mike Nolan | last post by:
As far as I can tell, Postgres has no equivalent to greatest and least functions in Oracle. Yes, you can do the same thing with a case statement, but at the expense of writing MUCH longer SQL...
3
by: Serge Rielau | last post by:
Hi folks, One the more frequently asked questions is how to "sum" up strings by virtue of concatenating them in an aggregate function. Her eis a rather simpel solution that may be worth sharing...
4
by: Bo Berglund | last post by:
I have defined a few functions in a file, let's say it is called functions.cpp. There are no objects involved, these are pure simple functions. In my test application I want to call this...
7
by: Tigera | last post by:
Greetings, I've been reading Scott Meyer's book, "Effective C++", and I think that I've confused myself terribly. I have a class like this: class Tile { private: Enchantment* m_ench;...
7
by: FiveFootUnder | last post by:
Hi. Ow. I have a bruised forehead from banging my head against a brick wall and would really appreciate some help here. As long as it's not a suggestion that I shouldn't be trying this!! I'm...
9
by: Dahak | last post by:
I'm trying to generate dynamic functions to use as separate callbacks for an AJAX API call. The API doesn't seem to allow for the inclusion of any parameters in the callback, so I can't...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.