Hello MS Access experts,
I try to optimize a DB using exporting with DoCmd.TransferSpreadsheet function.
I have the following issue - it seems there is a restriction about the number of the symbols in the name.
For example when qry_Name_to_export consists more than 24 symbols I get an error:
[" is not an valid name. Make sure it does not include invalid characters or punctuation and that it is not too long]
Below is the code of the function.
Is there a way this size restriction to be avoided/expanded?
Thanks in advance for your help!
=====================================
Option Compare Database
'------------------------------------------------------------
Function Macro4()
On Error GoTo Macro4_Err
DoCmd.TransferSpreadsheet acExport, 10, "qry_Name_to_export", "C:\Temp\qry_Name_to_export", True, ""
Macro4_Exit:
Exit Function
Macro4_Err:
MsgBox Error$
Resume Macro4_Exit
End Function
====================
Best rregards
I try to optimize a DB using exporting with DoCmd.TransferSpreadsheet function.
I have the following issue - it seems there is a restriction about the number of the symbols in the name.
For example when qry_Name_to_export consists more than 24 symbols I get an error:
[" is not an valid name. Make sure it does not include invalid characters or punctuation and that it is not too long]
Below is the code of the function.
Is there a way this size restriction to be avoided/expanded?
Thanks in advance for your help!
=====================================
Option Compare Database
'------------------------------------------------------------
Function Macro4()
On Error GoTo Macro4_Err
DoCmd.TransferSpreadsheet acExport, 10, "qry_Name_to_export", "C:\Temp\qry_Name_to_export", True, ""
Macro4_Exit:
Exit Function
Macro4_Err:
MsgBox Error$
Resume Macro4_Exit
End Function
====================
Best rregards