473,756 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access - Split Memo Field into multiple rows

13 New Member
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 $2860 300 N
AUS 789 $987 $2 -985 P

and so on....there can be up to 500 lines in each memo field, and a field for each day for the past couple of years. There are specific spaces between each value a carriage return at the end of each row.

What i ultimately need to do is separate each line into a different field, from which i can split using instr and mid etc.

Unfortunately some other software is not an option due to the system controls in place by my employer.

I'm not expecting a solution, but a point in the right direction would be greatly appreciated. I've already spent a day on it, so even if someone says not possible, that would be excellent.

Thanks

Adrian
Dec 18 '07 #1
2 5534
Denburt
1,356 Recognized Expert Top Contributor
Without any code it is difficult for us to know what you are having difficulty with. You seem to have some knowledge of the instr() function so I am not sure this will help but hey I am throwing it out here.

Expand|Select|Wrap|Line Numbers
  1. Debug.Print Mid("YourAUSMemoFieldToPullAUSFrom", InStr("YourAUSMemoFieldToPullAUSFrom", "AUS"), InStr(InStr("YourAUSMemoFieldToPullAUSFrom", "AUS") + 1, "YourAUSMemoFieldToPullAUSFrom", "AUS") - InStr("YourAUSMemoFieldToPullAUSFrom", "AUS"))
  2.  
Or:
Expand|Select|Wrap|Line Numbers
  1. Dim i As Integer
  2. i = InStr("YourAUSMemoFieldToPullAUSFrom", "AUS")
  3. Debug.Print Mid("YourAUSMemoFieldToPullAUSFrom", i, InStr(i + 1, "YourAUSMemoFieldToPullAUSFrom", "AUS") - i)
  4.  
Hope this helps.
Dec 21 '07 #2
brightshadow
10 New Member
If the field is only delimited by spaces and CRs, then shouldn't you be able to just take the entire memo field, split it by the CRs [Chr(13)] and then split the results by the spaces [Chr(32)]?
Dec 22 '07 #3

Sign in to post your reply or Sign up for a free account.

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...
3
432
by: ICU | last post by:
Hi, I have an Access 2000 app that is correctly updating a memo field in the database from an ActiveXCTL but when I try to export that data to a RTF the file is created but it is blank. It appears to be related to the number of characters in that field?? Suggestions? thanks.
5
6112
by: bu | last post by:
I have a database field that represents an item description and varying length. I am using the database to import the item description into another program (the other program is ODBC-aware ). The problem is that the description would be imported into the other program in lengths of 50 characters. So if the entire description is 160 chars, the program would need the description in 4 rows - 3 rows of 50 and 1 row of 10. I have been...
3
3271
by: MLH | last post by:
I'm trying to type (a), (b) or (c) into an Access 97 memo field. Access keeps turning it into a copyright symbol ( © ) How can I override that? I don't want a copyright symbol.
16
4883
by: Mark | last post by:
Hello. I am attempting to use AppendChunk() to write binary data to a memo field in Access 2000. My initial call to AppendChunk() results in a data type conversion error. Any suggestions? Here is a VBA function which demonstrates the problem. Thanks -Mark
3
8492
by: Jason.Forget | last post by:
I have created a 4 Reports using the Reports Wizard in Access 2003 and the text in a memo field is being cut off. This is an inconsistent issue being that it is affecting just one of the reports. The field on the report is set to Can Grow as is the Header. The total text if 697 characters. I have read the following articles and found that they do not pertain to my issue: http://www.mcse.ms/archive153-2004-12-1311942.html ...
4
3609
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...
7
8847
by: ARC | last post by:
This is taken from the "What's New in Access 2007" page. However, I've looked through all the properties of a text field memo box, and cannot find the append only option. Does anyone know how to use this feature? ------------------ "Memo fields are useful for storing large amounts of information. With Office Access 2007, you can set the Append Only property to retain a history of all changes to a Memo field. You can then view a history...
6
10912
by: Jeremy Goodman | last post by:
Access 2007; Merging records containing multivalue drop down lists. I have a database showing legislation information divided by State/territory. The database needs to be able to show the info from each legislation and then an overall picture for the state. There is no problem with merging some of the info using the steps in: http://bytes.com/topic/access/answers/589999-combining-multiple-rows-one-field-into-one-result The problem is...
0
9456
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
9713
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
8713
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
7248
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
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
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...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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
3
2666
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.