Query is built, all fields set up with formatting, etc. All fields are now text. Query is a make table query. The new table is then to be exported to a fixed length .dat file. This is for an existing Organizational Chart program, until we can complete the OrgChart from our new PeopleSoft HRMS program. I can do this manually everyday, but, I would rather not. I am writing a bat file, and code in a module that will do the following:
Batch file:
1. Open database
Module - opens first in db
1. Run query - delete/make table - tblEmployee
2. Open table - export all records to employee.dat file on the server
3. close db
GREAT!! Problem in #2 though. The file has to be a fixed length for all fields, there are 24 data fields, and 6 "filler" fields. All fields have to be a fixed length, already in place from the original program settings. There are also, font and font size settings that have to be defined.
I originally was doing an append query, where the table would open, all records would delete, close, then run query, close, open table, then export to a .dat file. I did this because of the field size properties that I set up in the table. It really didn't work. Because, I lost the field lengths, and got all kinds of 'crud' in the file. I see many suggestions in the forum, but none that totally fit my situation. I would appreciate any assistance I can get.
FYI - If I don't reply back to your reply/solution soon, sorry, I am on vacation starting Friday, coming back the Monday after the new year holiday.
Happy New Years!
tinkertoy
res07pyp@verizon.net
Batch file:
1. Open database
Module - opens first in db
1. Run query - delete/make table - tblEmployee
2. Open table - export all records to employee.dat file on the server
3. close db
GREAT!! Problem in #2 though. The file has to be a fixed length for all fields, there are 24 data fields, and 6 "filler" fields. All fields have to be a fixed length, already in place from the original program settings. There are also, font and font size settings that have to be defined.
I originally was doing an append query, where the table would open, all records would delete, close, then run query, close, open table, then export to a .dat file. I did this because of the field size properties that I set up in the table. It really didn't work. Because, I lost the field lengths, and got all kinds of 'crud' in the file. I see many suggestions in the forum, but none that totally fit my situation. I would appreciate any assistance I can get.
FYI - If I don't reply back to your reply/solution soon, sorry, I am on vacation starting Friday, coming back the Monday after the new year holiday.
Happy New Years!
tinkertoy
res07pyp@verizon.net