Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default CLosing Linked datatable

I have a report template that saves a report twice; a 'DatedReport 20070227'
and a 'LastReport'. I created a 'LastDate' table in the LastReport report
that is refered to in the template (it is in a small data query). So when
the template runs it updates the datatable linked to the LastReport.LastDate,
but now I want to save the report.

The file will save as DatedReport 20070227 just fine, but it will not allow
me to overwrite the LastReport saying #70: Access Denied.

I think the link from the tempolate to the LastReport is still open.
Q- How do I close the connection to the LastReport so I can overwrite the
file?

Thanks so much for you help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default CLosing Linked datatable

I found the answer using :
Sheets("Corrective Action Record").QueryTables("Latest_Report").Delete

"Candyman" wrote:

I have a report template that saves a report twice; a 'DatedReport 20070227'
and a 'LastReport'. I created a 'LastDate' table in the LastReport report
that is refered to in the template (it is in a small data query). So when
the template runs it updates the datatable linked to the LastReport.LastDate,
but now I want to save the report.

The file will save as DatedReport 20070227 just fine, but it will not allow
me to overwrite the LastReport saying #70: Access Denied.

I think the link from the tempolate to the LastReport is still open.
Q- How do I close the connection to the LastReport so I can overwrite the
file?

Thanks so much for you help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart's DataTable fujing1003 Charts and Charting in Excel 5 February 8th 07 11:20 AM
CHARTS DATATABLE GILBERT Excel Programming 3 September 29th 06 06:57 AM
how to delete row from the runtime Datatable sweta26_kum Excel Programming 0 July 18th 06 12:17 PM
Excel into DataTable using OleDbDataAdapter Matthew_H Excel Programming 1 March 4th 05 08:25 AM
DataTable number format MB Excel Programming 2 January 21st 05 07:11 PM


All times are GMT +1. The time now is 03:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"