Hello,
I have a VBA module that export to CSV text and works perfectly on any table except for those that contain a multivalued field.
The error I get is "invalid argument". If I export from the ribbon menu it is working fine (commas are replaced by semicolons within the multivalued field) but the module for some reason does not digest multivalued fields. Can anybody enlighten me?
Thanks
I have a VBA module that export to CSV text and works perfectly on any table except for those that contain a multivalued field.
PHP:
Function Export_to_text_delimited()
On Error GoTo Export_to_text_delimited_Err
DoCmd.TransferText acExportDelim, "Export Specification", "Table 01", "D:\Table 01.txt", True, ""
Export_to_text_delimited_Exit:
Exit Function
Export_to_text_delimited_Err:
MsgBox Error$
Resume Export_to_text_delimited_Exit
End Function
The error I get is "invalid argument". If I export from the ribbon menu it is working fine (commas are replaced by semicolons within the multivalued field) but the module for some reason does not digest multivalued fields. Can anybody enlighten me?
Thanks