memo data type field

N

neil

How can I get access to accept text of more than 255
chars?

If I enter more than 255 i can open the databse in
access, but the app I am writing cannot open it I am
using Jet 4.0??

Thanks!!!
 
T

Tim Ferguson

How can I get access to accept text of more than 255
chars?

A memo field can go up to as big as an mdb file...

There is a limitation in the Access Textbox control which can only handle
32K characters, so if you need to handle bigger text than that you will
need to do some programming with GetChunk and AppendChunk.

I don't understand what is going wrong for you -- please post again with
more information.

B Wishes


Tim F
 
N

neil

Access will accept the text I enter, but when I open it
with my application I get an error, I am using microsoft
jet 4.0 as the DAO. If i do some queries on the table
where the memo field is the text is truncated in the
result?

Thanks

Neil
 
T

Tim Ferguson

Access will accept the text I enter, but when I open it
with my application I get an error, I am using microsoft
jet 4.0 as the DAO. If i do some queries on the table
where the memo field is the text is truncated in the
result?

I thought (but I may be completely wrong) that jet 4 was an ADO library and
the most recent version of DAO was 3.6. In any case, this is a bit odd.

Because you mentioned truncation at 255 characters, I have to ask you to
check that we are talking about a Memo datatype field, not a Text one --
but apols if you've already ascertained that.

The next thing to do is to check the actual length of text stored: try
running a query like

SELECT LEN(MyMemoField) AS LengthOfMemo
FROM MyTable
WHERE PKValue = [RecordWithALongEntry]

and compare the result with what it should be.

If this says that the stored text is correct and greater than 255, it must
be a GUI problem. Check any Format or Max Length properties for the text
box on the form; try removing it and putting another one in to make sure
there are no defaults you have forgotten about. Don't forget to make sure
that MultiLine is True, ScrollBars is Vertical, EnterBehaviour is set to
something sensible. Use <shift-F2> to see any text that is scrolling out of
view.

Try using another way of getting at the text string:

Set rs = db.OpenRecordset( _
"SELECT MyMemoField FROM MyTable WHERE PKValue = 1029", _
dbOpenSnapshot, dbForwardOnly)

Debug.Print rs!MyMemoField.Value

to see if it is all there.

Best of luck,


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top