Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

TransferSpreadsheet acExport Character Limit?????

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
joseph micheli - 18 Jan 2006 15:41 GMT
I am using the following line of VBA to transfer an Access table to an Excel
workbook off of a command button on a form:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel3,
"tblFacComplianceByAuditType", strInitialFileName, True

It works well until the string "strInitialFileName" extends beyond a certain
character length (see e.gs below). At that point, I get an error message
indicating that the object tblFacComplianceByAuditType cannot be found etc...

I am at a loss.  Any input/suggestions would be greatly appreciated.  Thanks.

Works:
P:\Field Audits\FAT\FAT Development\Facility Compliance Ohio Region.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance Wisconsin.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance WisconsinA.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance WisconsinAB.xls

Does not work:

P:\Field Audits\FAT\FAT Development\Facility Compliance WisconsinABC.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance Wisconsin Minn.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance Wisconsin
Minnesota.xls
P:\Field Audits\FAT\FAT Development\Facility Compliance Kentucky Indiana
Operations.xls

Signature

Joe Micheli CPA, CMA, CFM, CPIM

joseph micheli - 18 Jan 2006 16:20 GMT
I believe this was the result of network issues.
Signature

Joe Micheli CPA, CMA, CFM, CPIM

> I am using the following line of VBA to transfer an Access table to an Excel
> workbook off of a command button on a form:
[quoted text clipped - 22 lines]
> P:\Field Audits\FAT\FAT Development\Facility Compliance Kentucky Indiana
> Operations.xls
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.