jcsabi
06-19-2013, 04:33 AM
Hello,
I would like to change the type of a field from double into text (dbText), without error 3219. It is possible without any data loss by hand, but how is it possible in VBA?
Thanks,
Csaba
Sub CSVexport()
DoCmd.TransferDatabase acImport, "Microsoft Access", Path, acTable, "E_CS_N", "E_CS_N"
' This is generate an error 3219:
CurrentDb.TableDefs("E_CS_N").Fields("G3E").Type = dbText
DoCmd.TransferText acExportDelim, "CSVexport", "E_CS_N", Path & ".csv", False, , 1250
DoCmd.RunSQL ("DROP TABLE [E_CS_N];")
End Sub
I would like to change the type of a field from double into text (dbText), without error 3219. It is possible without any data loss by hand, but how is it possible in VBA?
Thanks,
Csaba
Sub CSVexport()
DoCmd.TransferDatabase acImport, "Microsoft Access", Path, acTable, "E_CS_N", "E_CS_N"
' This is generate an error 3219:
CurrentDb.TableDefs("E_CS_N").Fields("G3E").Type = dbText
DoCmd.TransferText acExportDelim, "CSVexport", "E_CS_N", Path & ".csv", False, , 1250
DoCmd.RunSQL ("DROP TABLE [E_CS_N];")
End Sub