Re: Transfer Spreadsheet acExport - Table with added column won't export
- From: "Walkabout via AccessMonster.com" <u31203@uwe>
- Date: Mon, 01 Oct 2007 16:46:43 GMT
Ken,
As I replied the first time, when the user chooses to not add STD3 or Medians,
the export worked fine - until I added the brackets, that gives me the "Not
Updatable" message. Here is the sub for that (Without brackets or brackets
being added to strings):
sub MakeXLSMeasure
dim MyPath
Mypath = CurrentProject.path
dim QueryName as string
dim OldQueryName as string
dim MyFile as string
OldQueryname = QueryName
Queryname = Replace(QueryName, " ", "")
-- There are replacements for each character that is not acceptable in an
Excle name.
MyFile = Mypath & "\" & QueryName & "" & ".xls"
docmd.transferspreadsheet acexport, acspreadsheettypeexcel9, oldQueryName, My
File
End sub
I removed the brackets from QueryName and MyFile strings. Doing it this way,
it works when the the table to export has not been altered, but fails when
fields have been added and gives me the orginal message of The Microsoft
Database Engine could not find the object ''.....
Thanks Again Ken!
Ken Snell (MVP) wrote:
This error usually means that there is a problem with the path or file name
for the EXCEL file -- path doesn't exist, path + filename string is too
long, file extension is invalid for EXCEL file type (needs to be .xls), you
don't have privileges to the folder where you want to put the file, etc.
Post the entire VBA code for what you're doing so that we can see the whole
picture.
Ken,[quoted text clipped - 13 lines]
Walkabout
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200710/1
.
- Follow-Ups:
- Re: Transfer Spreadsheet acExport - Table with added column won't export
- From: Ken Snell \(MVP\)
- Re: Transfer Spreadsheet acExport - Table with added column won't export
- References:
- Re: Transfer Spreadsheet acExport - Table with added column won't export
- From: Walkabout via AccessMonster.com
- Re: Transfer Spreadsheet acExport - Table with added column won't export
- From: Ken Snell \(MVP\)
- Re: Transfer Spreadsheet acExport - Table with added column won't export
- Prev by Date: Re: How to Change Background Color of Specific Records in Continuo
- Next by Date: Re: mask and allow negative values problem
- Previous by thread: Re: Transfer Spreadsheet acExport - Table with added column won't export
- Next by thread: Re: Transfer Spreadsheet acExport - Table with added column won't export
- Index(es):
Relevant Pages
|