473,796 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grouping memo fields

Hi guys,
My table has a memo field. At the end of the month a run
a report and I would like to concatenate the memo fields in a unique
field by
dept. Im thinking doing this through totals button , but in the
combobox
there are only max,min,sum,.. There is no concatenate function.
Im avoinding doing that using VBA.

Somebody help me please.
Maffonso

May 26 '06 #1
7 2694
You are going to have to do _something_ more than wish for a simple macro
solution.

Just offhand, using VBA in the OnPrint event of Detail records, to
concatenate ("&" is the concatenation operator, with "+" also working if
there are no Null Memo Fields) is the simplest approach, and then moving the
contents of the variable where you concatenated into a Text Box in the
OnPrint event of the Group Footer for the department.

Larry Linson
Microsoft Access MVP

"maffonso" <mm*******@gmai l.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .
Hi guys,
My table has a memo field. At the end of the month a run
a report and I would like to concatenate the memo fields in a unique
field by
dept. Im thinking doing this through totals button , but in the
combobox
there are only max,min,sum,.. There is no concatenate function.
Im avoinding doing that using VBA.

Somebody help me please.
Maffonso

May 27 '06 #2
Just for starters, it sounds like you really are trying to group on Memo
fields. You can't.

You can concatenate; you can extract some number of characters from the left,
middle, or right; you can even move every word in the memo field to an array
in one line of code. But you can't group on Memo fields.

Can you say a bit more about what you're trying to accomplish? Memo fields
are for holding large amounts of text. (Limit=32K characters). There is
nothing you would normally put in a Memo field that would merit or encourage
grouping.

On 5/26/2006 2:10:10 PM, "maffonso" wrote:
Hi guys,
My table has a memo field. At the end of the month a run
a report and I would like to concatenate the memo fields in a unique
field by
dept. Im thinking doing this through totals button , but in the
combobox
there are only max,min,sum,.. There is no concatenate function.
Im avoinding doing that using VBA.

Somebody help me please.
Maffonso

--
Science is organized common sense where many a beautiful theory is killed by an ugly fact (Thomas Huxley).
May 27 '06 #3
Hi guys,
My table is month,dept, comment.
A have to do a report by dept , doesnt matter month.
Most of the comments are about 400 characters (that discards text
field).
First question: Are there a type between text and memo?
Pehaps I could use textfield and limit the lenght of the comment to 255
but users could complain.My boss would love it.
Larry, could you explain better how to concatenate the memos using &.
Like this: txtComment = txtComent & memoField ?? Is that Ok?

Thank you all.

May 27 '06 #4
"maffonso" <mm*******@gmai l.com> wrote in
news:11******** **************@ u72g2000cwu.goo glegroups.com:
Hi guys,
My table is month,dept, comment.
A have to do a report by dept , doesnt matter month.
Most of the comments are about 400 characters (that discards
text field).
First question: Are there a type between text and memo?
Pehaps I could use textfield and limit the lenght of the
comment to 255
but users could complain.My boss would love it.
Larry, could you explain better how to concatenate the memos
using &. Like this: txtComment = txtComent & memoField ?? Is
that Ok?

Thank you all.


Insead of trying to concatenate the memo fields, build your
report using the summary query, and add a subreport that
contains only the memo fields for the department and a hidden
field that contains the department name..

--
Bob Quintal

PA is y I've altered my email address.
May 27 '06 #5
"maffonso" <mm*******@gmai l.com> wrote
Larry, could you explain better how
to concatenate the memos using &.
Like this: txtComment = txtComent & memoField
?? Is that Ok?


That would depend on where you were doing the concatenation and the details
of the situation.

Dim strSomeComment as String
Dim strSomeMemo as String
. . .
strSomeComment = strSomeComment & strSomeMemo

would be OK. If the memo data to be concatenated is in a Field in a Record
read with DAO or ADO, or if it is in a Control displayed on a Form, or if it
is a Field in the Form's RecordSource but not displayed in a Control, then
the notation would be different.

Larry Linson
Microsoft Access MVP
May 28 '06 #6
"Larry Linson" <bo*****@localh ost.not> wrote in
news:E2leg.2639 $As2.1511@trndd c02:
"maffonso" <mm*******@gmai l.com> wrote
Larry, could you explain better how
to concatenate the memos using &.
Like this: txtComment = txtComent & memoField
?? Is that Ok?


That would depend on where you were doing the concatenation and
the details of the situation.

Dim strSomeComment as String
Dim strSomeMemo as String
. . .
strSomeComment = strSomeComment & strSomeMemo

would be OK. If the memo data to be concatenated is in a Field in
a Record read with DAO or ADO, or if it is in a Control displayed
on a Form, or if it is a Field in the Form's RecordSource but not
displayed in a Control, then the notation would be different.


But then you might run into the DAO memo concatenation problem,
which causes the result to be gibberish atfer the 255th character.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
May 29 '06 #7
I still don't see what you're need to concatenate.

If you have a field that denotes the Dept, you can restrict data by that
field and print all the records for a single department (showing all months)
or for a single month (showing all departments) or any combination.

Is it maybe enough just to restrict what you're printing, and then you don't
actually have to concatenate these memo fields?
May 30 '06 #8

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

Similar topics

2
4721
by: Jeremy | last post by:
I have a pretty straightforward database that is designed to record free-form information about products (date, source and a memo field). This is searched and updated via a form. For new records, the memo field is usually filled by cutting and pasting from e-mails, web content and spreadsheets. The only problem is that some of the memos can be just a few words, and some can be tens or hundreds of lines, and I've realised that zooming...
1
1895
by: Remco Groot Beumer | last post by:
Hello, In an Access 97 database, there is a table that has some Memo-fields. Some of the memo-fields (not all) with a lot of text in it, display the data blurred all over each other (two textlines are written over each other at the same time). These memo-fields become unreadable by this. Does anyone know how to solve this?
13
2169
by: ken | last post by:
I have 5 memo fields in one of my tables. I need to add 7 more. Will this be a problem? Am I being paranoid? Thanks
2
3594
by: jacoballen | last post by:
I have a query that combines the results of three related tables. The memo fields are truncated to 255 characters, but I need all the information in them. I'm aware that removing code such as DISTINCT and GROUPBY will fix this problem (as discussed in other threads in this group), but I need to limit the query results to unique values, which is what DISTINCT does for me. Any suggestions? Thanks, Jacob
9
5740
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo field is printed within the detailed area. The problem is, the apllication is not setup properly, thus the users are entering data within the memo field as: location1 1/1/2005 1/1/2006
4
3612
by: kaplan.gillian | last post by:
Hi everyone, I currently have an Access database that includes quite a few long memo fields. When I create a report of my data, Access does not allow the memo fields to be split with the page breaks. In other words, if my memo field is 3 paragraphs long and there is only space on a report page for 2 paragraphs, rather than putting 2 paragraphs on one page and the last one on the next page, all 3 paragraphs are moved to the next page...
10
3059
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of records in QuotesHdr, should I break out the memo fields into a separate table? The thinking here is that, for Quotes selection dropdowns that display all entries in QuotesHdr for selection, I would think that the entire record comes down over...
2
4771
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that vary based on user selections. The input files are CSVs and can number from 2 to 175 columns. Each field is usually able to fit into a Text field (< 255 characters) but every now and then a longer field creeps in. since I don't know in which column...
4
5671
by: Wayne | last post by:
I've been asked to construct a database which will require several memo fields. This database will be the standard frontend/backend mdb configuration. I have read many posts describing the corruption problems associated with memo fields, especially in a networked environment. Am I asking for trouble if I go ahead with this project?
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.