I am exporting a table to a csv file using the following code:
The columns in the table may change, but the last column should always be 'Grpno'. I would like to prevent the 'GrpNo' column from being exported.
Can someone point me in the direction of how to do that?
Thanks,
Sup
Code:
strSQL = "Select * from Table1 Where GrpNo = 2"
Set qdf = CurrentDb.CreateQueryDef("qryGrp2", strSQL)
qdf.Close
DoCmd.TransferText acExportDelim, , qdf.name, "C:\Grp2.csv", True
The columns in the table may change, but the last column should always be 'Grpno'. I would like to prevent the 'GrpNo' column from being exported.
Can someone point me in the direction of how to do that?
Thanks,
Sup