Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Data into an Access2K database

Status
Not open for further replies.

spayne

Programmer
Feb 13, 2001
157
US
I am developing a program that inserts data from VFP 6.0 tables into an Access2K database using remote views. I am running into problems with text fields. The data is going in but the field doesn't trim up. For example, if I put "Red" into field "Color", whose size is twenty, there are 17 trailing spaces after the word. Some of these fields get concatenated to form sentences, so these spaces can't be there. I am using ALLTRIM, so "Red" goes in as only three characters, but it doesn't make a difference. Any ideas?
 
The database fields are of constant width and so the trailing spaces are present. When you want to make the sentence, you should use ALLT(color)+SPACE(1)+ALLT(shape) etc.
ramani :)
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Jon, thanks. Do you have any idea when this, if ever, will get resolved?

Ramani, unfortunately I'm not writing the code that creates the report. It's done by a program we received from another company.

Steve
 
Sounds like you'll have to do something ugly like creating an array of variables (properly trimmed) from your table and then send those to your report. --Dave
 
Hi Steve,

I cant say for sure when, if ever, this will be resolved, for I dont know. If it were going to be fixed, it would be in the next major release, which is due out in the next few months.

Maybe someone running a VFP7 Beta can test it for you.

My thoughts are: it will still be a known issue in the next release.

Hopefully I'm wrong. Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top