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

Create report that displays Oracle CLOB data correctly?

I am using Access 2003 (on WinXP) to read from an Oracle db, where there is a table with a CLOB which is a variable-size text field. In the 'linked table' which is created in the Tables panel of Access, the CLOB becomes a Memo field. I need to create a report that displays the data from this CLOB in the correct format. The data in the CLOB contains any number of chr(13), i.e. Carriage Returns, without LF, to separate lines of data that are entered in the Oracle application.

The data that comes out in the report looks like this:
11//04/06 First letter sent18/04/06 Student disputing debt04/05/06 e-mail sent ....
because the chr(13)s are ignored in the output.

I need it to look like this:
11//04/06 First letter sent
18/04/06 Student disputing debt
04/05/06 e-mail sent
....


I have tried creating a copy table (both in Oracle and in Access), holding a copy of the data after replacing every chr(13) with chr(10), and I have also tried replacing chr(13) with chr(13)&chr(10). These either give the same result or cause the data to be truncated after the first chr(13), so that's no good.

I found a reference to the Split function in Access Help, but I don't know enough about writing Access code to know how to use this in the Modules area. I tried putting "split(fieldname,chr(13),1)" in the control source on the report, but Access doesn't recognise this; it treats the 'split..' expression as a parameter. The idea of creating an array sounds like a good one, but then I need to know how to get the array into the report; the field is set up as a text box, and I don't see a way of converting it to an array - you can change it to a list box, but that doesn't seem to help.

Can anyone help with this? Maybe you could paste me some code that gives me an idea of how to create an array from a field, and then describe how to get this into a report field. I am used to using Access to write pass-through queries to get reports from Oracle, but I am not very clued up about Access code, so please don't assume too much!

Many thanks in advance.
Mar 7 '07 #1
3 4565
Rabbit
12,516 Expert Mod 8TB
I don't know a whole lot about this but it looks like Access is stripping the chr(13) when it imports. So what you'll have to do is replace all the chr(13) with some sort of escape character, import that, and then put the chr(13) back in.
Mar 7 '07 #2
Hi rabbit

Actually when Access imports it, the chr(13) is still there - if I copy the whole table into an Access table, I can see the chr(13) using select mid(...).

The problem is getting it to print right in the report.

Any more clues?
Cheers
Mar 7 '07 #3
NeoPa
32,556 Expert Mod 16PB
I know that using Memo fields can often cause problems, but I wasn't able to produce your problem with a simple TextBox on a report bound to a simple Memo field in my database.
I suspect it's related to Memo fields somehow, but I just haven't found the right situation.
Mar 8 '07 #4

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

Similar topics

0
by: freak | last post by:
hi i have problems reading an oracle(9i) clob from a php-script with the MDB-class from pear. the table files has 3 fields: id integer document clob picture clob
5
by: gimme_this_gimme_that | last post by:
In Oracle you can have a statement such as insert into foo (foo_id,some_clob) values (100,empty_clob()) where empty_clob() inserts a clob address. What is the approach in DB2 (8.1) to...
8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
3
by: premmehrotra | last post by:
I am using Access 2000 and Oracle 9.2.0.x on a Windows 2000. I have setup Oracle 9.2 ODBC Driver (I have not yet figured how to set Microsoft's Oracle ODBC driver). I am exporting a table from...
3
by: DavidPL | last post by:
Hello, I have some problem with bind method in PDO on Oracle with clob | long column type. I have table named TEST_TABLE where I have two columns: ID (int 10, 0) and TEXT (varchar 4000 or long...
0
by: aniendow | last post by:
Hi All, I am trying to upload a TAB delimited file into a database table. Considering the performance issue I thought EXTERNAL TABLE is my best option but with one problem, My table has CLOB...
0
by: Tom | last post by:
Looking for some help with stored procedure call issues. Conceptually, I need to pass a data structure as the sole parameter to the Oracle stored procedure. Sounds simple enough....but how? ...
3
by: Gox | last post by:
Hi. This is my situation: Backend: Oracle 8i Frontend: MS Access 2k (ODBC driver support LOBs) Q: How insert (upload) a CLOB (pdf or doc file) to an Oracle using MS access (form)?? Q: How...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
1
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...
0
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...
0
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,...
0
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...

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.