Hi all,
I am using the ExportDelim function to export a set of records based on the result of a query. This works, and in the text file there is a carriage return after each record, except for the last one. I need to input a manual carriage return after this last record for the text file to be used successfully elsewhere.
I've looked at some threads, so I know you can use the ascii codes 10 and 13, or a function called vbCrLf (I think!) But what I'm unsure of is the code I need to put after the ExportDelim command to open the text file, go to the end of it, then insert the carriage return. Can you append the ascii commands perhaps, something using a standard >> command??!
Please note: I don't want to change the way I'm doing the export, so don't suggest it
Thanks in advance,
Nick
PS - PHV apologies for not getting back to you re. my previous post about Access crashing under Server 2003 - it has now started working, and I can't explain it at all, apart from putting it down to either Server 2003 or IIS security.
I am using the ExportDelim function to export a set of records based on the result of a query. This works, and in the text file there is a carriage return after each record, except for the last one. I need to input a manual carriage return after this last record for the text file to be used successfully elsewhere.
I've looked at some threads, so I know you can use the ascii codes 10 and 13, or a function called vbCrLf (I think!) But what I'm unsure of is the code I need to put after the ExportDelim command to open the text file, go to the end of it, then insert the carriage return. Can you append the ascii commands perhaps, something using a standard >> command??!
Please note: I don't want to change the way I'm doing the export, so don't suggest it
Thanks in advance,
Nick
PS - PHV apologies for not getting back to you re. my previous post about Access crashing under Server 2003 - it has now started working, and I can't explain it at all, apart from putting it down to either Server 2003 or IIS security.