
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
I am dowloading some records (sales orders) from a Pervasive SQL server, the
table has the following fields
SO, double
CUSCOD, text
SODESC, text
ratter than doing a query like this:
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE BKARINV SET BKARINV.CUSCOD = [BKARINV]![CUSCOD],
BKARINV.SODESC = [BKARINV]![SODESC];"
DoCmd.SetWarnings True
I would like to have a vba code, the BKARINV table has 37 columns (would be
a longggggg query)
Why?? Pervasive fills in the entire field. Example:
The CUSCODE 's field lenght is 15 characters, but if you enter "JOHN",
eventhough "JOHN" has only 4 characters
Pervasive fill the rest with something!!! The only way to clear that
"something" is by using the Trim funcion.
Thanks for your time.
Regards,
Bre-x
> Can you give an example of what you're trying to do?
>
[quoted text clipped - 12 lines]
>>
>> Bre-x
Bre-x - 09 Aug 2006 21:18 GMT
Hehehe, I forgot the actual TRIM!!! function
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE BKARINV SET BKARINV.CUSCOD =
Trim([BKARINV]![CUSCOD]), BKARINV.SODESC = Trim([BKARINV]!
[SODESC]);"
DoCmd.SetWarnings True
thanks again
>I am dowloading some records (sales orders) from a Pervasive SQL server,
>the table has the following fields
[quoted text clipped - 42 lines]
>>>
>>> Bre-x
Douglas J. Steele - 09 Aug 2006 22:14 GMT
An update query is definitely the way to go.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Hehehe, I forgot the actual TRIM!!! function
>
[quoted text clipped - 51 lines]
>>>>
>>>> Bre-x