473,466 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I have a 2-field table I want to trim strings off of one of the fields...

MLH
My table has an autonumber field and a text field named
[RawData]. Many records have unnecessary spaces padding
the front and end of [RawData] - at least, I think they're spaces.
The look like spaces to me.

Here's the SQL I'm using...
UPDATE Addresses SET Addresses.RawData = Trim$([RawData]);

"Microsoft Access didn't update 2353 field(s) due to a type conversion
filter..." I wonder what kind of type conversion Access is trying to
do on a text field string with text in it?
Nov 13 '05 #1
4 3134
MLH
"Microsoft Access didn't update 2353 field(s)
due to a type conversion failure..."

Above is how the error msg read - type conversion failure
NOT type conversion filter.
Nov 13 '05 #2
Try the following query
SELECT ASC(LEFT(RawData, 1)) FROM Addresses

If you get 32 then they are spaces if you don't then that may be the cause
of your problem.

Also try using Trim rather than Trim$.

Terry Kreft


"MLH" <CR**@NorthState.net> wrote in message
news:ig********************************@4ax.com...
My table has an autonumber field and a text field named
[RawData]. Many records have unnecessary spaces padding
the front and end of [RawData] - at least, I think they're spaces.
The look like spaces to me.

Here's the SQL I'm using...
UPDATE Addresses SET Addresses.RawData = Trim$([RawData]);

"Microsoft Access didn't update 2353 field(s) due to a type conversion
filter..." I wonder what kind of type conversion Access is trying to
do on a text field string with text in it?

Nov 13 '05 #3
MLH
Thx, Terry. I don't know what happened. I must have
had some corruption in the table. I created the table
in a new database, exported the text to file, imported
the records into the new table and new dbase AND
the same query. Everything ran perfectly. I did notice
that a very few records did not make it from dbase 1
to dbase 2. That was no biggie. I entered them
manually. Must have been corruption. Dunno.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx

Try the following query
SELECT ASC(LEFT(RawData, 1)) FROM Addresses

If you get 32 then they are spaces if you don't then that may be the cause
of your problem.

Also try using Trim rather than Trim$.

Terry Kreft


"MLH" <CR**@NorthState.net> wrote in message
news:ig********************************@4ax.com.. .
My table has an autonumber field and a text field named
[RawData]. Many records have unnecessary spaces padding
the front and end of [RawData] - at least, I think they're spaces.
The look like spaces to me.

Here's the SQL I'm using...
UPDATE Addresses SET Addresses.RawData = Trim$([RawData]);

"Microsoft Access didn't update 2353 field(s) due to a type conversion
filter..." I wonder what kind of type conversion Access is trying to
do on a text field string with text in it?


Nov 13 '05 #4
So long as you found it, that's the main thing.

I've been chasing a bug all morning which turned out to be due to two
factors interacting with each other, depending upon run conditions and I
only found the answers by a couple of lucky guesses, so heres to the fragile
wall I bang my head against <g>.

Terry Kreft
"MLH" <CR**@NorthState.net> wrote in message
news:qc********************************@4ax.com...
Thx, Terry. I don't know what happened. I must have
had some corruption in the table. I created the table
in a new database, exported the text to file, imported
the records into the new table and new dbase AND
the same query. Everything ran perfectly. I did notice
that a very few records did not make it from dbase 1
to dbase 2. That was no biggie. I entered them
manually. Must have been corruption. Dunno.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx

Try the following query
SELECT ASC(LEFT(RawData, 1)) FROM Addresses

If you get 32 then they are spaces if you don't then that may be the cause
of your problem.

Also try using Trim rather than Trim$.

Terry Kreft


"MLH" <CR**@NorthState.net> wrote in message
news:ig********************************@4ax.com. ..
My table has an autonumber field and a text field named
[RawData]. Many records have unnecessary spaces padding
the front and end of [RawData] - at least, I think they're spaces.
The look like spaces to me.

Here's the SQL I'm using...
UPDATE Addresses SET Addresses.RawData = Trim$([RawData]);

"Microsoft Access didn't update 2353 field(s) due to a type conversion
filter..." I wonder what kind of type conversion Access is trying to
do on a text field string with text in it?

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stewart Allen | last post by:
I'm trying to filter a table that has 2 date fields, the first date will always have a value but the second will only occasionally has a value. Each date field also has a corresponding text field...
1
by: geronimo_me | last post by:
Hi, I have a small problem I am trying to check if field1 in Table1 matches Field2, Field3 or Field4 in Table2: ie Record 1 Table1 Field1 = ABC Table2
36
by: No Spam | last post by:
Dear fellow Access 2003 Users, Is there a way to trim all of the fields in a table in one swoop using VBA (preferred) or a query? Right now, I am using an update query and updating EACH field...
4
by: zMisc | last post by:
I've a table with over 100 fields and when I update a record in ADO.NET (on a web form), it crashed out with expression is too complex. But it works for adding a new record. It also works with...
1
by: zoeb | last post by:
Currently I have a table, and would like the calculate a field in the table by referencing values from another 3 tables. i.e. tblData Index1, Index2, Index3, Value 1 2 3 2...
6
by: KPR1977 | last post by:
In my Access Database in Table1, I have one record that looks something like this. (eg. "fldProd" represents field name, while "Apple" represents field value.) fldProd - Apple (text value) fldPIO -...
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
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...
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...
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.