Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting FoxPro data into Access database
Message
 
To
09/04/2001 10:29:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00493549
Message ID:
00495074
Views:
15
>I am developing a program that takes data from VFP 6.0 tables and inserts it into an Access 2K database. Everything is going in except I get trailing spaces at the end of character fields. For example there is a field named "Color" in the Access database defined with a field size of 20. I insert "Red" into this field and there are 17 trailing spaces. ALLTRIM doesn't make a difference. If anyone can tell me how to remove these spaces, I would greatly appreciate it.
>
>Thanks,
>Steve

Hi Steve,

Access behaves just how it should behave. For example, the length of the Access field is 20 and you insert a string "Red", which length is 3. So Access 2K right justifies the string. You result is "Red" + 17 trailing spaces.

HTH, Igor
Igor Gelin
Database Developer
Previous
Reply
Map
View

Click here to load this message in the networking platform