A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Truncated entries



 
 
Thread Tools Display Modes
  #1  
Old August 18th, 2004, 07:53 PM
Ellen
external usenet poster
 
Posts: n/a
Default Truncated entries

Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen
  #2  
Old August 18th, 2004, 08:01 PM
Rick B
external usenet poster
 
Posts: n/a
Default

Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to say =255


Rick B


"Ellen" wrote in message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


  #3  
Old August 18th, 2004, 08:35 PM
Ellen
external usenet poster
 
Posts: n/a
Default

Thanks, Rick. Could you give me more details on how this
would be done? Would I do a query with my field with a
criteria of Len([255])?

Thanks in advance.

Ellen
-----Original Message-----
Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to

say =255


Rick B


"Ellen" wrote in

message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


.

  #4  
Old August 18th, 2004, 08:39 PM
Rick B
external usenet poster
 
Posts: n/a
Default

No,

Add a new column to your query with an entry in the "Field:" of:...

Len([YourFieldNameHere])


Then in the "Criteria:" under that item, put...

=255


Rick B




"Ellen" wrote in message
...
Thanks, Rick. Could you give me more details on how this
would be done? Would I do a query with my field with a
criteria of Len([255])?

Thanks in advance.

Ellen
-----Original Message-----
Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to

say =255


Rick B


"Ellen" wrote in

message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


.



  #5  
Old August 18th, 2004, 11:46 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

You might want to set the criteria to =254 since the 255th character might
have been a space.

--
Duane Hookom
MS Access MVP


"Rick B" wrote in message
...
No,

Add a new column to your query with an entry in the "Field:" of:...

Len([YourFieldNameHere])


Then in the "Criteria:" under that item, put...

=255


Rick B




"Ellen" wrote in message
...
Thanks, Rick. Could you give me more details on how this
would be done? Would I do a query with my field with a
criteria of Len([255])?

Thanks in advance.

Ellen
-----Original Message-----
Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to

say =255


Rick B


"Ellen" wrote in

message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


.





  #6  
Old August 19th, 2004, 01:25 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Wed, 18 Aug 2004 11:53:46 -0700, "Ellen"
wrote:

Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


Text fields are limited to 255 characters. Could you explain what you
mean by "updated a text field with one of a memo field"? What does
updating a text field have to do with searching a field?

You can use a Query with a calculated field:

FieldLen: Len([memofield])

and use a criterion of 255 on this calculated field to find all
records where the memo is longer than will fit in a Text.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
  #7  
Old August 19th, 2004, 01:24 PM
Ellen
external usenet poster
 
Posts: n/a
Default

Thanks, Rick and Duane.

Should it look like this?
SELECT CEDI.MAINTERM, Len([MAINTERM]) AS Expr1
FROM CEDI
WHERE (((Len([MAINTERM]))=254));

MAINTERM is my field name. CEDI is the table name.

Ellen
-----Original Message-----
You might want to set the criteria to =254 since the

255th character might
have been a space.

--
Duane Hookom
MS Access MVP


"Rick B" wrote in

message
...
No,

Add a new column to your query with an entry in

the "Field:" of:...

Len([YourFieldNameHere])


Then in the "Criteria:" under that item, put...

=255


Rick B




"Ellen" wrote in

message
...
Thanks, Rick. Could you give me more details on how

this
would be done? Would I do a query with my field with a
criteria of Len([255])?

Thanks in advance.

Ellen
-----Original Message-----
Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to

say =255


Rick B


"Ellen" wrote in

message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


.





.

  #8  
Old August 19th, 2004, 02:21 PM
external usenet poster
 
Posts: n/a
Default

John,
I probably mixed up my terms. I updated my table that has
the text field, with a memo field from another table. The
memo fields with more than 255 characters got truncated
when placed into the text field.

I'd like to correct that with a query that will rerun the
update only on those fields with 255 characters or those
that got truncated.

Hopefully, you get the idea.
-----Original Message-----
On Wed, 18 Aug 2004 11:53:46 -0700, "Ellen"
wrote:

Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


Text fields are limited to 255 characters. Could you

explain what you
mean by "updated a text field with one of a memo field"?

What does
updating a text field have to do with searching a field?

You can use a Query with a calculated field:

FieldLen: Len([memofield])

and use a criterion of 255 on this calculated field to

find all
records where the memo is longer than will fit in a Text.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
.

  #9  
Old August 20th, 2004, 04:21 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

Did you try it?

--
Duane Hookom
MS Access MVP


"Ellen" wrote in message
...
Thanks, Rick and Duane.

Should it look like this?
SELECT CEDI.MAINTERM, Len([MAINTERM]) AS Expr1
FROM CEDI
WHERE (((Len([MAINTERM]))=254));

MAINTERM is my field name. CEDI is the table name.

Ellen
-----Original Message-----
You might want to set the criteria to =254 since the

255th character might
have been a space.

--
Duane Hookom
MS Access MVP


"Rick B" wrote in

message
...
No,

Add a new column to your query with an entry in

the "Field:" of:...

Len([YourFieldNameHere])


Then in the "Criteria:" under that item, put...

=255


Rick B




"Ellen" wrote in

message
...
Thanks, Rick. Could you give me more details on how

this
would be done? Would I do a query with my field with a
criteria of Len([255])?

Thanks in advance.

Ellen
-----Original Message-----
Sure.

Build a query and add a new column with something like:

Len([SomeFieldName])


This will return the length. You could add criteria to
say =255


Rick B


"Ellen" wrote in
message
...
Hello,
I have updated a text field with one of a memo field.
There are entries that have been truncated. Is there a
way to search for all fields with 255 characters?

Thank you in advance,
Ellen


.





.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate entries Frank Kabel Worksheet Functions 1 May 21st, 2004 12:51 PM
importing calendar entries from work calendar to home Bill Calendar 1 May 2nd, 2004 03:26 PM
Changing a group of entries Peter New Users 2 April 24th, 2004 03:25 AM
Unique entries in a filtered list Worksheet Functions 1 November 21st, 2003 01:08 PM


All times are GMT +1. The time now is 10:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.