473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Is it possible to get support from Microsoft for this problem?

I've run into a nasty problem, can't find a way around it.

This line of code:

DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName

errors with

#2385 - Errors were encountered during the save operation.

The error only occurs on some systems. Other systems (also running XP pro)
get no error at all on that line. Anyone know of another command that can
do the OutputTo? Is there any point in contacting Microsoft? I would be
willing to pay for support if I thought there was a good chance they could
help.

Anyone have a suggestion?

--
Randy Harris
(tech at promail dot com)
Nov 13 '05 #1
7 1442
On Wed, 16 Mar 2005 23:12:08 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:

One alternative is to use Automation.
Create an object of type Excel.Application.
Using this object, you can control every aspect of Excel. You can
create a new workbook, poke data into the first sheet, and save it.

The help file for Excel's object model is an optional part of the
Office installer. If you chose the defaults, you may have to go back
and explicitly select it.

If you decide to contact MSFT, be sure to reduce the problem to the
minimum: an Access db with a single table and a single macro with a
single line in it.

-Tom.
I've run into a nasty problem, can't find a way around it.

This line of code:

DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName

errors with

#2385 - Errors were encountered during the save operation.

The error only occurs on some systems. Other systems (also running XP pro)
get no error at all on that line. Anyone know of another command that can
do the OutputTo? Is there any point in contacting Microsoft? I would be
willing to pay for support if I thought there was a good chance they could
help.

Anyone have a suggestion?


Nov 13 '05 #2
"Randy Harris" <ra***@SpamFree.com> wrote in
news:c3*****************@newssvr17.news.prodigy.co m:
I've run into a nasty problem, can't find a way around it.

This line of code:

DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS,
FileName

errors with

#2385 - Errors were encountered during the save operation.

The error only occurs on some systems. Other systems (also
running XP pro) get no error at all on that line. Anyone know of
another command that can do the OutputTo? Is there any point in
contacting Microsoft? I would be willing to pay for support if I
thought there was a good chance they could help.


Don't you have to specify the XLS extension?

You also might want to try the TransferSpreadsheet command instead.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3
I neglected to include the previous line, which, (I think) answers the
question.

FileName = CurrentProject.Path & "\GSQ_" & Format(Now, "mmm-dd-yy-hhmm") &
".xls"
DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName

--
Randy Harris
(tech at promail dot com)
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@24.168.1 28.74...
"Randy Harris" <ra***@SpamFree.com> wrote in
news:c3*****************@newssvr17.news.prodigy.co m:
I've run into a nasty problem, can't find a way around it.

This line of code:

DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS,
FileName

errors with

#2385 - Errors were encountered during the save operation.

The error only occurs on some systems. Other systems (also
running XP pro) get no error at all on that line. Anyone know of
another command that can do the OutputTo? Is there any point in
contacting Microsoft? I would be willing to pay for support if I
thought there was a good chance they could help.


Don't you have to specify the XLS extension?

You also might want to try the TransferSpreadsheet command instead.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

Nov 13 '05 #4
I dug into this about a hundred years ago and now I'm having trouble
remembering yesterday. Is creating the Excel.Application object using
early, rather than late, binding? I was advised to change that, which I
did, way back when.

Part of the difficulty with contacting Microsoft, is that none of the
systems that are failing are local. I can't reproduce the problem here.

--
Randy Harris
(tech at promail dot com)
"Tom van Stiphout" <no*************@cox.net> wrote in message
news:lp********************************@4ax.com...
On Wed, 16 Mar 2005 23:12:08 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:

One alternative is to use Automation.
Create an object of type Excel.Application.
Using this object, you can control every aspect of Excel. You can
create a new workbook, poke data into the first sheet, and save it.

The help file for Excel's object model is an optional part of the
Office installer. If you chose the defaults, you may have to go back
and explicitly select it.

If you decide to contact MSFT, be sure to reduce the problem to the
minimum: an Access db with a single table and a single macro with a
single line in it.

-Tom.
I've run into a nasty problem, can't find a way around it.

This line of code:

DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName

errors with

#2385 - Errors were encountered during the save operation.

The error only occurs on some systems. Other systems (also running XP pro)get no error at all on that line. Anyone know of another command that cando the OutputTo? Is there any point in contacting Microsoft? I would be
willing to pay for support if I thought there was a good chance they couldhelp.

Anyone have a suggestion?

Nov 13 '05 #5
On Thu, 17 Mar 2005 04:45:37 GMT, "Randy Harris" <ra***@SpamFree.com>
wrote:

If you are sure to have Excel available, use early binding. It also
makes writing the code easier because intellisense will be available.

If not sure Excel is installed, use late binding (Dim objExcel as
Object). I still would develop the code using early binding, and
switch to late binding at the last moment.

-Tom.
I dug into this about a hundred years ago and now I'm having trouble
remembering yesterday. Is creating the Excel.Application object using
early, rather than late, binding? I was advised to change that, which I
did, way back when.

Part of the difficulty with contacting Microsoft, is that none of the
systems that are failing are local. I can't reproduce the problem here.


Nov 13 '05 #6
Randy Harris wrote:
I neglected to include the previous line, which, (I think) answers the
question.

FileName = CurrentProject.Path & "\GSQ_" & Format(Now, "mmm-dd-yy-hhmm") &
".xls"
DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName


I'd still go with David's suggestion and try out TransferSpreadsheet.

Also, nothing to do with the problem but a handy tip for putting date
stamps into file names is to use international format yyyy-mm-dd, when
sorted alphabetically they are also sorted by date + avoids confusion
between British and US dates.

Date stamps as provided by the OS are anything but reliable, too easy to
change the last modified (edit or in some apps (Access) just open the
file) and the Created date, if the file is a copy is usually later than
the modified date (i.e. it's the date the file was copied, not
originally created), so no followups about sorting by date in exploder
please :-)

--
This sig left intentionally blank
Nov 13 '05 #7
David's suggestion was indeed a good one. I changed the code to
TransferSpreadsheet and it no longer fails. I like your idea for the date
format, I'll be making that change as well.

Thanks to everyone for their input.

--
Randy Harris
(tech at promail dot com)
"Trevor Best" <no****@besty.org.uk> wrote in message
news:42**************@besty.org.uk...
Randy Harris wrote:
I neglected to include the previous line, which, (I think) answers the
question.

FileName = CurrentProject.Path & "\GSQ_" & Format(Now, "mmm-dd-yy-hhmm") & ".xls"
DoCmd.OutputTo acOutputTable, "GSQ_Criteria", acFormatXLS, FileName


I'd still go with David's suggestion and try out TransferSpreadsheet.

Also, nothing to do with the problem but a handy tip for putting date
stamps into file names is to use international format yyyy-mm-dd, when
sorted alphabetically they are also sorted by date + avoids confusion
between British and US dates.

Date stamps as provided by the OS are anything but reliable, too easy to
change the last modified (edit or in some apps (Access) just open the
file) and the Created date, if the file is a copy is usually later than
the modified date (i.e. it's the date the file was copied, not
originally created), so no followups about sorting by date in exploder
please :-)

--
This sig left intentionally blank

Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joe Reazor | last post by:
I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one of my solutions and rebuilt my project and all went well. I then ran my project in debug mode. My program runs up fine,...
2
by: Naresh | last post by:
I have been having a problem and I don't know where to go for help. The microsoft support is only for a fees. Can anyone at all please at least point to a site or some place where I can hope for some...
4
by: Ravikanth[MVP] | last post by:
Hi It is possible that IIS and SQL Server can reside on Seperate Machines and you can use Integrated Windows Authentication to connect. Ravikanth >-----Original Message-----
3
by: James Radke | last post by:
Hello, I was curious, is it possible to create drag and drop interface from listbox to listbox on a webform application (i.e. vb.net)? Basically the application would need to load multiple...
1
by: sp | last post by:
Is it possible to instal dot net 2.0 SDK on Win 98 or Win ME? I tried and I received A required resource cannot be found (at the window bar there ara unusual signs). I installed .net 2.0...
4
by: Tomasz | last post by:
Hello Developers, Here is interesting problem I just came across: how do I wire a GridView control programmatically? Here is my sample code using Object Data Source: protected void...
5
by: Simon | last post by:
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks.
4
by: Oriane | last post by:
Hi Steven, "Steven Cheng " <stcheng@online.microsoft.coma écrit dans le message de news:ZJOyi9J4IHA.4928@TK2MSFTNGHUB02.phx.gbl... Thanks for the link. I've tried that but there is one withdrawal...
2
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
Is it possible to automate a COM object ebmeded in an excel document run the process and return the results in a C# .NET application? Or better yet extract the com object some how and just run it...
3
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I need to store some configuration settings in a db using an 2 fileds ID Field and String Field The ID Field is a unique key and the string holds a xml string that store my settings...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.