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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preserve all-blank field in delimited text import?

Status
Not open for further replies.

cdingman

MIS
Sep 20, 1999
3
US
I am importing delimited text files that have some fields will all blank characters and that has a special meaning (long story of why but I have to live with it). Text import wizard in Access 97 makes this a null. I don't see an option to preserve the blanks. Am I missing something in the GUI, or do I need to use VB? [sig][/sig]
 
I think you will need to use VB - and MORE. Ms. Access always truncates trailing blanks in database fields. You will need to set up some other obscure process to maintain the information, such as a new field (integer) which could hold the number of spaces which SHOULD be in the all blanks field. If the (real) field is populated, just ignore this "special" information, otherwise use it to determine the number of spaces the empty field should have.

The alternative is to re-think the use/signifance of the blanks in the original system and re-design the process to do this another way. If you are just using the existing data as a data consumer, you probably don't have any real choice but to do the count thing. If this is a conversion effort from some other process / system to Ms. Access, you should be able to influence the process design to avoid the awkward use of blank fields.

[sig]<p>MichaelRed<br><a href=mailto:mred@duvallgroup.com>mred@duvallgroup.com</a><br>There is never time to do it right but there is always time to do it over[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top