473,379 Members | 1,191 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,379 software developers and data experts.

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 4697
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.co.uk> wrote in message
news:92**************************@posting.google.c om...
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
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...
4
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...
2
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...
1
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...
9
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...
3
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 ...
4
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...
5
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.