473,770 Members | 5,976 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

memo fields - asking for trouble?

I have an mdb (2002 file format) that uses memo fields extensively. I've
read a lot about how problematic memo fields can be and that avoiding them
is a good idea. But I'm stuck with them and was wondering if there are any
best-parctices for optimizing or mitigating the risk of using them. Here's
what one table looks like:

NoteText - Memo
NoteDate - Date/Time (indexed, dupes ok)
NoteBrief - Text (length = 254)
Entity_ID - (Long, Foreign Key, indexed, dupes ok))
Note_ID - (Autonumber, Long, Primary Key)

This table is getting awfully big - would putting the NoteText field in it's
own table (so that's the only thing in the table) help, or does it really
make a difference?
Nov 12 '05 #1
24 2722
Don't worrry about it.

While there is a slightly increased chance of corruption, use them when you
need it. Avoiding them is about as useful as building a car with doors,
since cutting doors in the side weakens the frame of the vehicle. If you
need them, build them in.

The table you describe is not a very big table, unless you have millions of
records in it.

--
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.

"deko" <de**@hotmail.c om> wrote in message
news:Ki******** ***********@new ssvr29.news.pro digy.com...
I have an mdb (2002 file format) that uses memo fields extensively. I've
read a lot about how problematic memo fields can be and that avoiding them
is a good idea. But I'm stuck with them and was wondering if there are any best-parctices for optimizing or mitigating the risk of using them. Here's what one table looks like:

NoteText - Memo
NoteDate - Date/Time (indexed, dupes ok)
NoteBrief - Text (length = 254)
Entity_ID - (Long, Foreign Key, indexed, dupes ok))
Note_ID - (Autonumber, Long, Primary Key)

This table is getting awfully big - would putting the NoteText field in it's own table (so that's the only thing in the table) help, or does it really
make a difference?

Nov 12 '05 #2
> Don't worrry about it.

Thanks - hopefully there is some added stability with the 2002 file format
as well.
Nov 12 '05 #3
I'd be surprised if there was much difference in the stability of the A2002
format w.r.t. the A2000 format.

--
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.

"deko" <de**@hotmail.c om> wrote in message
news:zy******** **********@news svr25.news.prod igy.com...
Don't worrry about it.


Thanks - hopefully there is some added stability with the 2002 file format
as well.

Nov 12 '05 #4
Allen Browne wrote:
I'd be surprised if there was much difference in the stability of the A2002
format w.r.t. the A2000 format.


I'd doubt it, it's the same version of Jet.

One thing I used to do was to have a table without memo fields then
another table linked on a 1:1 relationship with the memo field in, that
way if the recored ever got lost to corruption I'd only lose the memo
data and not the rest of the record.

Although I'd pojn t out that memo corruption was only really a problem
for me in versions 2.0 and 97 (I didn't use 95 at all) but then by the
time I got to 2000, I was using SQL Server back-ends so I don't know if
Jet4 is any better or worse for that sort of thing.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 12 '05 #5
Trevor Best <nospam@localho st> wrote in
news:40******** *************** @auth.uk.news.e asynet.net:
Allen Browne wrote:
I'd be surprised if there was much difference in the stability of
the A2002 format w.r.t. the A2000 format.


I'd doubt it, it's the same version of Jet.

One thing I used to do was to have a table without memo fields
then another table linked on a 1:1 relationship with the memo
field in, that way if the recored ever got lost to corruption I'd
only lose the memo data and not the rest of the record.

Although I'd pojn t out that memo corruption was only really a
problem for me in versions 2.0 and 97 (I didn't use 95 at all) but
then by the time I got to 2000, I was using SQL Server back-ends
so I don't know if Jet4 is any better or worse for that sort of
thing.


The original release of A2K was prone to it. I think it was Jet that
was to blame. By Jet 4 SP6, it was no longer an issue.

The easiest thing to do for anyone worrying about memo field
corruption is to edit them unbound. That is, use an unbound control
for display/editing, and use the AfterUpdate event of the unbound
control to update the underlying field.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #6
> The easiest thing to do for anyone worrying about memo field
corruption is to edit them unbound. That is, use an unbound control
for display/editing, and use the AfterUpdate event of the unbound
control to update the underlying field.


But doesn't this limit the input to 255 characters? The reason I'm using
the memo fields is because users want to dump in pages of text. Can this be
done in an unbound field?
Nov 12 '05 #7
deko wrote:
The easiest thing to do for anyone worrying about memo field
corruption is to edit them unbound. That is, use an unbound control
for display/editing, and use the AfterUpdate event of the unbound
control to update the underlying field.

But doesn't this limit the input to 255 characters? The reason I'm using
the memo fields is because users want to dump in pages of text. Can this be
done in an unbound field?

No reason why not, I thought a textbox's limit was 64K. I get a lot
morte in there usinbg an RTF control and the method David pointed out
although it's updating another table as say on a purchase order I will
have several long texts configured to the client's requirements and of
course they want to be able to pretty the text up a bit too, which the
RTF control allows. Actually I use Daniel Paull's Richy
(http://www.vb4all.net/products.asp?ID=2) which is based around it with
a lot more functionality.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 12 '05 #8
> No reason why not, I thought a textbox's limit was 64K. I get a lot
morte in there usinbg an RTF control and the method David pointed out
although it's updating another table as say on a purchase order I will
have several long texts configured to the client's requirements and of
course they want to be able to pretty the text up a bit too, which the
RTF control allows. Actually I use Daniel Paull's Richy
(http://www.vb4all.net/products.asp?ID=2) which is based around it with
a lot more functionality.


Thanks for the tip - I looked at the Richy control. It's a bit more than I
need right now, but sounds good.

As for using an RTF control, can I use the Microsoft Rich Textbox Control,
version 6.0? I found this by clicking on the "More Controls" icon (last on
the right of the toolbox toolbar in Design View). Lot's of controls here
I've never used.

So I dropped that RTF control into a form - still experimenting.. . I assume
it's supposed to behave differently than a regular text box? In any case,
if I use an RTF control with David's suggested method (unbound control), how
do I update the table?

DoCmd.RunSQL ("UPDATE tblNotes SET [NoteText] = " & Me!rtfNote & " WHERE
Note_ID = " & Me!Note_ID)

I tried this with a standard text box - it trys to put the entire contents
of the textbox in the SQL statement, which obviously won't work with the RTF
control....
Nov 12 '05 #9
"deko" <de**@hotmail.c om> wrote in
news:Ms******** **********@news svr29.news.prod igy.com:
In any case,
if I use an RTF control with David's suggested method (unbound
control), how do I update the table?


Using a rich-text control of any kind is asking for trouble.

Unbound controls do not have the 255-character limit you assumed, so
there's no issue with using a plain old unbound text-box.

And I wouldn't do the updates in SQL, unless they were stored in a
different table. All I'd do is include the memo field in the form's
recordsource, and just not bind the control. For updates, something
like this in the control's AfterUpdate event:

Me!MyMemo = Me!fldMyMemo

I've done it many times in the past. It works just fine.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #10

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

Similar topics

4
22771
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary to export the report? I tried exporting a report by using the .rtf rich-text format (the plain-text format was the only other word-processing option listed when exporting). I then opened the .rtf file in Word. However, it looks like some...
24
1354
by: deko | last post by:
I have an mdb (2002 file format) that uses memo fields extensively. I've read a lot about how problematic memo fields can be and that avoiding them is a good idea. But I'm stuck with them and was wondering if there are any best-parctices for optimizing or mitigating the risk of using them. Here's what one table looks like: NoteText - Memo NoteDate - Date/Time (indexed, dupes ok) NoteBrief - Text (length = 254) Entity_ID - (Long,...
1
1882
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?
1
3057
by: alexsg | last post by:
A little while ago Ron P kindly responded to my inquiry on how to copy the first line of memo field into a text field, using a query: left(,instr(1,,vbCrLf)-1) This is great, but I would like to do this on a form, so that the person entering the memo can use a button to paste the 1st line to a title (text) field. I'm having trouble setting up the code to do this. I'd also appreciate some ideas on how to get the 2nd and 3rd lines...
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...
4
5668
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
9592
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
9425
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
10058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
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
9870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8886
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
7416
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
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.