Output from Access 97 to Excel

DavidCroft

New Member
Joined
Oct 16, 2002
Messages
19
I'm using the OutputTo method in MS Access 97 to output a report to an Excel workbook. The workbook created opens fine in Excel 2000 but if I try to open it in Excel 2002 I get an Excel dialog saying errors detected "renamed invalid sheet name". I have a user with Access 97 and Excel 2002 on her machine and need to get them to work together. Incidentally there is a Microsoft KB article that indicates that the format output by Access 97 is Excel 5.0/95 (not Excel 97 as the Help says and you might expect). I guess there is some incompatability between the Excel 5.0/95 format and Excel 2002?
Thanks in advance for any help,
David
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Sure. I just emailed an example to you. I have several others created from Access 97 in the same way but they have client confidentail data.
 
Upvote 0
Okay. What's the name of the table/query/report you're exporting from?

Have you tried Transfer spreadsheet method instead?

I happened to be on the phone with MrExcel, so I asked him about it. He says it sounds familiar and we came up with these questions for you.

I've also put a pointer from the Access forum to this Q to see if any Access geeks can help us. I've been troubleshooting MS Office for years and never heard of this.
 
Upvote 0
The sample report is called "UpdateReportOutAll_VariationforExport_Other" but the behaviour is the same with any other report. The reports to be exported already exist with the data required and are quite sophisticated, for instance some code behind the report that fills certain fields, so it would require some effort to switch to building a table that can then be exported using transfer spreadsheet. But I'll "dummy up" a quick transfer spreadsheet test to see if that works.

I did some more experimenting. One test was that I opened the generated report in Excel 2000 and then simply saved it. When prompted on the save "workbook is a microsoft Excel 5.0/95 workbook. Do you want to overwrite it with latest format?" I replied No to save it in current format (presumably still Excel 5.0/95). However, I'm then able to open in Excel 2002 with no problems! So the mere act of opening in Excel 2000 and saving without, presumably, changing the format has an effect. Interesting!!
David
 
Upvote 0
There's your problem. Likely, Excel 2000 says "the hell with it" and just names it Sheet1.

XP and above are reporting the error to you. Rename the export to something LESS than 32 characters...
 
Upvote 0
That sounded likely but unfortunately doesn't work. Even using a different report name (e.g.: URTest) I get the problem. When I open the workbook in Excel 2000 the sheet is still called Sheet1. Seems like the report output from Access does not name the sheet based on the report name. This is different from when a query is exported to Excel when the query name is used as the sheet name. If I open my URTest in Excel 2002 I get the same invalid sheet name error.
David
 
Upvote 0
Okay. Don't think I'd be able to help without the DB...
 
Upvote 0

Forum statistics

Threads
1,221,537
Messages
6,160,394
Members
451,645
Latest member
hglymph

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top