Good morning everybody,
I have an ACCESS project, in which I was expotring some tables as TXT files to be used as input for some MATLAB code. Until now, these tables were "static" - means the number of columns and the column names were always the same for a given table. I was using then short exporting modules (example of code below) that I wrote for each table after saving the Export Specification for each table in the Export wizzard. Everything was working smoothly, but now I have one table, which is created by the user based on his selection of several fields. This means I have a table to export, which still has a same name but in which the number of fields and their names change everytime the routine is ran. The exporting module does not work anymore since the Export Specification is not the same anymore (I guess this is the problem...). Is there any way to circumvent this?
Thanks in advance for any suggestion,
Marcin
I have an ACCESS project, in which I was expotring some tables as TXT files to be used as input for some MATLAB code. Until now, these tables were "static" - means the number of columns and the column names were always the same for a given table. I was using then short exporting modules (example of code below) that I wrote for each table after saving the Export Specification for each table in the Export wizzard. Everything was working smoothly, but now I have one table, which is created by the user based on his selection of several fields. This means I have a table to export, which still has a same name but in which the number of fields and their names change everytime the routine is ran. The exporting module does not work anymore since the Export Specification is not the same anymore (I guess this is the problem...). Is there any way to circumvent this?
Thanks in advance for any suggestion,
Marcin
Code:
Function TXTsendTblGlobFactorFinLev() DoCmd.TransferText transfertype:=acExportDelim, _ specificationname:="GlobFactorFinLev Export Specification", _ TableName:="GlobFactorFinLev", _ Filename:="C:\MATLAB\DB\GlobFactorFinLev.txt", _ hasfieldnames:=True End Function
Comment