Hi Blinda,
if you are using the grid to lay out your query:
field --> [Fieldname]
updateTo --> " " & [Fieldname]
WHERE [Fieldname] is the name of your field
chr(32) is the same thing as " "
May I ask why you are wanting this change?
Warm Regards,
Crystal
*
(: have an awesome day

*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
Blinda wrote:
> Thanks. I have a question:
> For Update MyTable Set MyTable.FieldName = chr(32) & [FieldName]
> When I put "MyTable.FieldName = chr(32) & [FieldName]" to the update to of
> the update query for that FieldName, all of them change to text 0. Could you
> help for that?
>
>
> "fredg" wrote:
>
>> On Wed, 21 Mar 2007 15:46:05 -0700, Blinda wrote:
>>
>>> Hi all,
>>>
>>> I would like to add a space in front of my text data.
>>>
>>> Old data:
>>> E6789
>>> 34567
>>> 12345
>>>
>>> New data will be:
>>> E6789
>>> 34567
>>> 12345
>>>
>>> Please help for that. Thanks,
>>>
>>> Blinda
>> A permanent change?
>> Back up your database table first.
>>
>> As long as the field is Text datatype, you can run an Update Query:
>>
>> Update MyTable Set MyTable.FieldName = chr(32) & [FieldName]
>>
>> This is not do-able if the field is a Number datatype, as a space is
>> not a number.
>> --
>> Fred
>> Please respond only to this newsgroup.
>> I do not reply to personal e-mail
>>