How To Create A Fixed Width Text File From Access
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS
Contact US
Thanks. We have received your request and will respond promptly.
Log In
Come Join Us!
Are you a
Computer / IT professional?
Join Tek-Tips Forums!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts - Keyword Search
- One-Click Access To Your
Favorite Forums - Automated Signatures
On Your Posts - Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Posting Guidelines
Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Students Click Here
Export MS Access Table to Fixed Width Text File
- Forum
- Search
- FAQs
- Links
- MVPs
Export MS Access Table to Fixed Width Text FileExport MS Access Table to Fixed Width Text File(OP) I would like to export a MS Access Table to Fixed Width Text File. I would like to use VBA script to set the start/end of field and the width of the field. Does anyone know a simple way to do this? Thanks for any help. RE: Export MS Access Table to Fixed Width Text File(OP) Also would it be possible to set name of fields in the script? RE: Export MS Access Table to Fixed Width Text Filethen Mid() statemet is your best friend here. A start: CODEstrRptLin = space(80) ' fixed length string Greg RE: Export MS Access Table to Fixed Width Text File(OP) Just a little more help. Say the table name is "0705trp" and field names are: Rout Block_ _Date_ D Bus_ D Trip Time_ On_ Off 451 451001 052807 3 2 6 0837 17.0 3 0 Could someone show me how to set up my DIM statements and reference my table? RE: Export MS Access Table to Fixed Width Text Filetraingamer, 2Plan, It takes the name of a table of query as the data source so if you want to change the start/end fields you can create a QueryDef in VBA that has the fields you want and the names for those fields. Hope this helps, RE: Export MS Access Table to Fixed Width Text FileI love this forum. I had never used the 'fixed width' option with the TransferText() method. Looks much simpler than my idea (which I have used.) Greg RE: Export MS Access Table to Fixed Width Text File(OP) When I try to save the specification or export specific fields in the table, I get the error "the number of fields in export specification does not the number of fields in table. Can I save a specification with specific fields or export specific fields from table to text file? RE: Export MS Access Table to Fixed Width Text FileOK, the easiest way to do this is with a Macro Step 1. [File] Step 2. TransferText Save the macro J. RE: Export MS Access Table to Fixed Width Text File(OP) You've given me several ways to do this. Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts. |
Join | Advertise
Copyright © 1998-2021 engineering.com, Inc. All rights reserved.
Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy.
Join Tek-Tips® Today!
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
- Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More...
Register now while it's still free!
Already a member? Close this window and log in.
Join Us Close
How To Create A Fixed Width Text File From Access
Source: https://www.tek-tips.com/viewthread.cfm?qid=1383894
Posted by: sandersfrethe.blogspot.com
0 Response to "How To Create A Fixed Width Text File From Access"
Post a Comment