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

setting or changing multiple field sizes in one pass

Status
Not open for further replies.

markbrum

Technical User
Mar 10, 2003
46
0
0
GB
Hi,

I have my default field size for a text field set to 50 chars in Access.

When I import a CSV it comes in with all text fields set at 255 chars.

Can I either change something on import so that the CSV fields all come in as 50 chars or even better, can I run a query or macro to change all fields to 50 chars after export?

Thanks for any help.

Mark.
 
Easiest way is to import to an existing table with the correct field size.

Alternately you would need to use code to add a field to the table with the correct size, update the data to this field and delete the original field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top