Aim: A tab delimited text file
Current procedure: A make-table query that extracts the required data (based on a prompt)to a table. The table contents is then exported to a TAB delimited file. This file is then uploaded to a different database via the web.
Problem: Destination DB requires that, if present, fields follow a particular format. Because I am using a make-table the field lengths are always reset to the default (255 in a normal text field)
Possible Solutions:
1 - Change formatting of newly created table to fit the destination DB. This is time consuming and also has another problem that I can't seem to rid of (with regard to DOB see below).
2 - Change Query to an Append Query. Which does do the trick in that the formatting of the table is preserved. But I would want to clear out any existing data. This - I think - would need a MACRO or some VB scripting to clear out the data the append the results of the query. The problem with the DOB still exists (see below)
Anyone got any ideas on the best way to acheive this Macro and/or VB and any further help would be gratefully received.
The DOB problem
The DOB field is always exported in this format: dd/yy/mmmm 00:00:00 and we need just the dd/yy/mmmm (european-UK)format. Despite the format being set to shortdate and the following added to the query Left$([dbo_a_stu]![stu_dob],10)
Current procedure: A make-table query that extracts the required data (based on a prompt)to a table. The table contents is then exported to a TAB delimited file. This file is then uploaded to a different database via the web.
Problem: Destination DB requires that, if present, fields follow a particular format. Because I am using a make-table the field lengths are always reset to the default (255 in a normal text field)
Possible Solutions:
1 - Change formatting of newly created table to fit the destination DB. This is time consuming and also has another problem that I can't seem to rid of (with regard to DOB see below).
2 - Change Query to an Append Query. Which does do the trick in that the formatting of the table is preserved. But I would want to clear out any existing data. This - I think - would need a MACRO or some VB scripting to clear out the data the append the results of the query. The problem with the DOB still exists (see below)
Anyone got any ideas on the best way to acheive this Macro and/or VB and any further help would be gratefully received.
The DOB problem
The DOB field is always exported in this format: dd/yy/mmmm 00:00:00 and we need just the dd/yy/mmmm (european-UK)format. Despite the format being set to shortdate and the following added to the query Left$([dbo_a_stu]![stu_dob],10)