473,545 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying and pasting into a memo field - how can I split at line breaks?

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 matching fields one by one is very tedious!

Ideally I'd like to make the form detect multiple line memo fields,
and break them up so that it enters into the database a number of
fields with the same [date] and [source] but successive memo fields.

I'm guessing that this needs some Visual Basic, but believe it or not
I've built this database (which also includes sales history lookups
from our accounting system and a few other bits and pieces) without
once touching VB. By painful trial and error I have worked out how to
spot the line breaks by the CHR$(13), so I can successfully edit the
current record to include just the first line of text, but I just
can't work out how to create all the other records.

Can this be done without too much code, or am I barking up the wrong
tree? I started out by trying to make an input form or sheet that
would behave like Excel and interpret the line breaks in the pasted
text as separate records, but I'm 99% convinced that the memo field
logic prevents this.

Any advice will earn my undying thanks!
Jeremy
Nov 12 '05 #1
2 4707
I cant figure out what your trying to do, Perhaps a continuous form as a
subform would help you?
What do you mean 'zooming matching fields'?

Are you wanting to edit the data from the clipboard as it is pasted? or are
you wanting to edit the data that is already in the existing tables?

"Jeremy" <no****@brall.c o.uk> wrote in message
news:92******** *************** ***@posting.goo gle.com...
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 matching fields one by one is very tedious!

Ideally I'd like to make the form detect multiple line memo fields,
and break them up so that it enters into the database a number of
fields with the same [date] and [source] but successive memo fields.

I'm guessing that this needs some Visual Basic, but believe it or not
I've built this database (which also includes sales history lookups
from our accounting system and a few other bits and pieces) without
once touching VB. By painful trial and error I have worked out how to
spot the line breaks by the CHR$(13), so I can successfully edit the
current record to include just the first line of text, but I just
can't work out how to create all the other records.

Can this be done without too much code, or am I barking up the wrong
tree? I started out by trying to make an input form or sheet that
would behave like Excel and interpret the line breaks in the pasted
text as separate records, but I'm 99% convinced that the memo field
logic prevents this.

Any advice will earn my undying thanks!
Jeremy

Nov 12 '05 #2
"John Sheppard" <jt************ @nobosospam.com .au> wrote in message news:<3f******* *************** *@news.optusnet .com.au>...
I cant figure out what your trying to do, Perhaps a continuous form as a
subform would help you?
What do you mean 'zooming matching fields'?

Are you wanting to edit the data from the clipboard as it is pasted? or are
you wanting to edit the data that is already in the existing tables?


John

I use the memo field for a search, which shows 3 lines of the memo.
By 'zooming matching fields' I mean tabbing through the matches and
hitting the zoom key. This isn't very satisfactory, especially as it
means the users have to remember the part number they're searching
for.

I need both to update the existing data, and find a way to
automatically amend data on input. My ideal solution would be to have
the input subform, just before update, check the memo field for
multiple lines and if found turn these into multiple records (with all
other fields the same except the autoid primary key of course).

Jeremy
Nov 12 '05 #3

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

Similar topics

4
22738
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...
4
1892
by: Rosko | last post by:
Hello - I'm displaying a SQL Server text field in a bound column. The text field has line breaks (CrLf - 0D0A) but the text displays in a long string in the DataGrid. Anybody know how to display them? -- Rosko
2
3843
by: alexsg | last post by:
I'm setting up a resolutions database where each resolution will be copied from Word documents and pasted into a memo field. The resolution will be in the form: Resolution title <cr> Project no <cr> Date <cr> Meeting Type <cr> Resolution (up to several paragraphs separated by carriage returns etc).
1
3016
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...
9
5722
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...
3
2336
by: Roy | last post by:
Hi All, I have a table in A2K application.I get a memo field via download from a .csv file.The contents are as below: field name is TicketStatus, For example,a single ticket,TicketID 12345 has a track history contained in TicketStatus field.It starts right from problem opened until problem closed with date/time.
4
3586
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...
5
4233
by: cosmodango | last post by:
I have spent several days on this. I hope someone can help me. I am using Acccess 2000. I have a memo field where I have cut and pasted bulleted/numbered lists from Microsoft Word. I want to display this information via asp. I have managed to get the numbers, bullets, and even skipped lines to show up by using the Replace function and vblfcr....
2
5529
by: AdrianJ1980 | last post by:
Hi, I apologise for not providing a code basis for my question, but i really am stuck. Does anyone know how i can split a memo field, such as below, into separate records. (The data comes from the body of daily system generated emails that the database is linked to) Single Field: AUS 123 $450 $396 -4 N AUS 456 $2560 ...
0
7475
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...
0
7409
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...
0
7664
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. ...
0
7921
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...
0
7771
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...
0
5982
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...
1
5343
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...
0
3465
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...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.